Package moa.options
Class EditableMultiChoiceOption
- java.lang.Object
-
- com.github.javacliparser.AbstractOption
-
- com.github.javacliparser.MultiChoiceOption
-
- moa.options.EditableMultiChoiceOption
-
- All Implemented Interfaces:
Option
,Serializable
public class EditableMultiChoiceOption extends MultiChoiceOption
MultiChoiceOption that can have changing options.- Version:
- $Revision: 1 $
- Author:
- Cornelius Styp von Rekowski (cornelius.styp@ovgu.de)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected EditableMultiChoiceOptionEditComponent
editComponent
The corresponding UI component-
Fields inherited from class com.github.javacliparser.MultiChoiceOption
chosenOptionIndex, defaultOptionIndex, optionDescriptions, optionLabels
-
Fields inherited from class com.github.javacliparser.AbstractOption
cliChar, illegalNameCharacters, name, purpose
-
-
Constructor Summary
Constructors Constructor Description EditableMultiChoiceOption(String name, char cliChar, String purpose, String[] optionLabels, String[] optionDescriptions, int defaultOptionIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.github.javacliparser.MultiChoiceOption
getChosenIndex, getChosenLabel, getDefaultCLIString, getDefaultOptionIndex, getOptionDescriptions, getOptionLabels, getValueAsCLIString, setChosenIndex, setChosenLabel, setValueViaCLIString
-
Methods inherited from class com.github.javacliparser.AbstractOption
copy, getCLIChar, getName, getPurpose, getStateString, nameIsLegal, resetToDefault
-
-
-
-
Field Detail
-
editComponent
protected EditableMultiChoiceOptionEditComponent editComponent
The corresponding UI component
-
-
Method Detail
-
registerEditComponent
public void registerEditComponent(EditableMultiChoiceOptionEditComponent editComponent)
Register the corresponding UI component, so that it can be refreshed when options have changed.- Parameters:
editComponent
-
-
-