Class BooleanSettingGui

java.lang.Object
gg.xp.xivsupport.persistence.gui.BooleanSettingGui

public class BooleanSettingGui extends Object
GUI component provider for a boolean setting, including a label and checkbox.
  • Constructor Details

    • BooleanSettingGui

      public BooleanSettingGui(BooleanSetting setting, String label)
      Parameters:
      setting - The BooleanSetting
      label - The user-facing label to display
    • BooleanSettingGui

      public BooleanSettingGui(BooleanSetting setting, String label, Supplier<Boolean> enabled)
      Parameters:
      setting - The BooleanSetting
      label - The user-facing label to display
      enabled - Condition for whether this setting is enabled
    • BooleanSettingGui

      public BooleanSettingGui(BooleanSetting setting, String label, boolean listen)
      Parameters:
      setting - The BooleanSetting
      label - The user-facing label to display
      listen - Whether to listen to the setting and reflect any outside changes to the setting
    • BooleanSettingGui

      public BooleanSettingGui(BooleanSetting setting, String label, boolean listen, Supplier<Boolean> enabled)
      Parameters:
      setting - The BooleanSetting
      label - The user-facing label to display
      listen - Whether to listen to the setting and reflect any outside changes to the setting
      enabled - Condition for whether this setting is enabled
  • Method Details

    • getComponent

      public JCheckBox getComponent()
      Returns:
      The actual component