Class ChoiceValue

java.lang.Object
docking.widgets.values.AbstractValue<String>
docking.widgets.values.ChoiceValue

public class ChoiceValue extends AbstractValue<String>
Value class for selecting from a restricted set of Strings. ChoiceValues uses a GComboBox for the editor component.

This class and other subclasses of AbstractValue are part of a subsystem for easily defining a set of values that can be displayed in an input dialog (ValuesMapDialog). Typically, these values are created indirectly using a GValuesMap which is then given to the constructor of the dialog. However, an alternate approach is to create the dialog without a ValuesMap and then use its ValuesMapDialog.addValue(AbstractValue) method directly.