Package moa.options

Class 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
    • Constructor Detail

      • EditableMultiChoiceOption

        public EditableMultiChoiceOption​(String name,
                                         char cliChar,
                                         String purpose,
                                         String[] optionLabels,
                                         String[] optionDescriptions,
                                         int defaultOptionIndex)
    • 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 -
      • setOptions

        public void setOptions​(String[] labels,
                               String[] descriptions,
                               int defaultIndex)
        Set new options for this MultiChoiceOption and refresh the edit component.
        Parameters:
        labels -
        descriptions -
        defaultIndex -