public class EditableMultiChoiceOption extends MultiChoiceOption
Modifier and Type | Field and Description |
---|---|
protected EditableMultiChoiceOptionEditComponent |
editComponent
The corresponding UI component
|
chosenOptionIndex, defaultOptionIndex, optionDescriptions, optionLabels
cliChar, illegalNameCharacters, name, purpose
Constructor and Description |
---|
EditableMultiChoiceOption(String name,
char cliChar,
String purpose,
String[] optionLabels,
String[] optionDescriptions,
int defaultOptionIndex) |
Modifier and Type | Method and Description |
---|---|
void |
registerEditComponent(EditableMultiChoiceOptionEditComponent editComponent)
Register the corresponding UI component, so that it can be refreshed
when options have changed.
|
void |
setOptions(String[] labels,
String[] descriptions,
int defaultIndex)
Set new options for this MultiChoiceOption and refresh the edit
component.
|
getChosenIndex, getChosenLabel, getDefaultCLIString, getDefaultOptionIndex, getOptionDescriptions, getOptionLabels, getValueAsCLIString, setChosenIndex, setChosenLabel, setValueViaCLIString
copy, getCLIChar, getName, getPurpose, getStateString, nameIsLegal, resetToDefault
protected EditableMultiChoiceOptionEditComponent editComponent
public void registerEditComponent(EditableMultiChoiceOptionEditComponent editComponent)
editComponent
- Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.