com.cc.framework.taglib.forms
Class ForEachTag.FEOptionIterator

java.lang.Object
  extended bycom.cc.framework.taglib.forms.ForEachTag.FEOptionIterator
All Implemented Interfaces:
ForEachTag.ForEachIterator
Enclosing class:
ForEachTag

protected class ForEachTag.FEOptionIterator
extends java.lang.Object
implements ForEachTag.ForEachIterator

Iterator for OptionList data models

Author:
Harald Schulz

Field Summary
private  int index
           
private  OptionListDataModel options
           
 
Constructor Summary
ForEachTag.FEOptionIterator(OptionListDataModel options)
          Constructor
 
Method Summary
 java.lang.Object getBean()
           
 java.lang.Object getIndex()
           
 java.lang.String getPropertyAccessor(java.lang.String propertyName)
          Creates the property name that should be used to access the bean with the BeanUtils framework.
 boolean isDone()
           
 void next()
          proceed to the next iteration element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

private OptionListDataModel options

index

private int index
Constructor Detail

ForEachTag.FEOptionIterator

public ForEachTag.FEOptionIterator(OptionListDataModel options)
Constructor

Parameters:
options - the underlying data model
Method Detail

getBean

public java.lang.Object getBean()
Specified by:
getBean in interface ForEachTag.ForEachIterator
Returns:
the current iteration element
See Also:
ForEachTag.ForEachIterator.getBean()

getIndex

public java.lang.Object getIndex()
Specified by:
getIndex in interface ForEachTag.ForEachIterator
Returns:
the current iteration index
See Also:
ForEachTag.ForEachIterator.getIndex()

getPropertyAccessor

public java.lang.String getPropertyAccessor(java.lang.String propertyName)
Description copied from interface: ForEachTag.ForEachIterator
Creates the property name that should be used to access the bean with the BeanUtils framework.

Specified by:
getPropertyAccessor in interface ForEachTag.ForEachIterator
Parameters:
propertyName - the raw property name
Returns:
property accessor
See Also:
ForEachTag.ForEachIterator.getPropertyAccessor(java.lang.String)

isDone

public boolean isDone()
Specified by:
isDone in interface ForEachTag.ForEachIterator
Returns:
true when the iterator has reached its end
See Also:
ForEachTag.ForEachIterator.isDone()

next

public void next()
Description copied from interface: ForEachTag.ForEachIterator
proceed to the next iteration element

Specified by:
next in interface ForEachTag.ForEachIterator
See Also:
ForEachTag.ForEachIterator.next()


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.