Class GeneiousPreferences.GeneiousCheckBoxPreference

    • Constructor Detail

      • GeneiousCheckBoxPreference

        public GeneiousCheckBoxPreference​(java.lang.String code,
                                          java.lang.String name,
                                          boolean defaultValue)
        Parameters:
        code - GeneiousPreferences.GeneiousPreference.code
        name - GeneiousPreferences.GeneiousPreference.name
        defaultValue - value for this preference. This is used when the user has not previously set a value for this preference. The associated CheckBox will be in this selection state in that case.
    • Method Detail

      • getCurrentValue

        public boolean getCurrentValue()
        Returns:
        the current value of this preference
      • setCurrentValue

        public void setCurrentValue​(boolean 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.