com.cc.framework.ui
Interface OptionEnumerator


public interface OptionEnumerator

Iterator for creating OPTION Tags in a DropDownList Box

Since:
1.0
Version:
$Revision: 1.8 $
Author:
Harald Schulz

Method Summary
 boolean done()
          Checks if the End of the Collection is reached
 java.lang.String getKey()
          Returns the key, which is inserted in the value attribute of the option tag.
 java.lang.String getValue()
          Returns the text, wich should display
 boolean isSelected()
          Indicates if the actual item is selected.
 void next()
          Moves the iterator to the next elememt in the collection
 void restart()
          Starts with the collection at the beginning
 

Method Detail

done

public boolean done()
Checks if the End of the Collection is reached

Returns:
true if the end is reached; false otherwise.

getKey

public java.lang.String getKey()
Returns the key, which is inserted in the value attribute of the option tag.

Returns:
The Key

getValue

public java.lang.String getValue()
Returns the text, wich should display

Returns:
The display text

isSelected

public boolean isSelected()
Indicates if the actual item is selected.

Returns:
true if the actual item is selected; false otherwise.

next

public void next()
Moves the iterator to the next elememt in the collection


restart

public void restart()
Starts with the collection at the beginning



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