|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Choice
A choice is a set of entries from which the user can choose one. Note
that some components assume that a Choice
is immutable.
Method Summary | |
---|---|
String |
getDefaultChoice()
Gets the standard choice. |
String |
getId(int index)
Gets a unique identifier for the index 'th choice. |
String |
getText(int index)
Gets a name for the index' th choice. |
boolean |
isNullEntryAllowed()
Tells whether the user choose nothing. |
int |
size()
Gets the number of available choices. |
Method Detail |
---|
int size()
String getText(int index)
index'
th choice.
index
- the index of the choice
String getId(int index)
index
'th choice.
index
- the index of the choice
String getDefaultChoice()
null
is only
allowed if isNullEntryAllowed()
returns true
boolean isNullEntryAllowed()
null
identifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |