V
- the kind of objects this choice offerspublic interface ChoiceExtension<V>
Choice
, adding more options to the choice.Modifier and Type | Field and Description |
---|---|
static Path |
CHOICE_EXTENSION
The name of this extension
|
static String |
CHOICE_PARAMETER
The parameter containing the choise that is extended
|
Modifier and Type | Method and Description |
---|---|
V |
getChoice(int index)
Gets the
index 'th value of this choice. |
String |
getDefaultChoice()
Overrides 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 |
isTextKey(int index)
Tells whether
getText(int) for index index returns
a key for the TextManager or is just ordinary text. |
int |
size()
Gets the number of available choices.
|
static final Path CHOICE_EXTENSION
static final String CHOICE_PARAMETER
int size()
String getText(int index)
index
'th choice.index
- the index of the choiceboolean isTextKey(int index)
getText(int)
for index index
returns
a key for the TextManager
or is just ordinary text.index
- the index of the itemString getId(int index)
index
'th choice.index
- the index of the choiceV getChoice(int index)
index
'th value of this choice.index
- the index of the choiceString getDefaultChoice()
null
indicates that this
extension does not override the default choices