Class GeneiousPreferences.GeneiousComboBoxPreference

    • Field Detail

      • values

        public final java.util.List<java.lang.Object> values
        A list of values, each of which will be displayed as an item in a combo box. These values should be mutually exclusive as only one can be selected.
    • Constructor Detail

      • GeneiousComboBoxPreference

        public GeneiousComboBoxPreference​(java.lang.String code,
                                          java.lang.String name,
                                          java.lang.Object[] values,
                                          java.lang.Object defaultValue)
        Parameters:
        code - GeneiousPreferences.GeneiousPreference.code
        name - GeneiousPreferences.GeneiousPreference.name
        values - the possible values for this preference values
        defaultValue - value for this preference. This is used when the user has not previously set a value for this preference. The ComboBox representing this preference will have this value set in that case.
    • Method Detail

      • getCurrentValue

        public java.lang.Object getCurrentValue()
        Returns:
        the current value of this preference
      • setCurrentValue

        public void setCurrentValue​(java.lang.Object currentValue)
        This change will be reflected in the preference dialog of the program. Use this if a plugin changes its own preferences independently of the preferences dialog in the program.
        Parameters:
        currentValue - the current value of this preference.