Package gg.xp.xivsupport.persistence.gui
Class BooleanSettingGui
java.lang.Object
gg.xp.xivsupport.persistence.gui.BooleanSettingGui
GUI component provider for a boolean setting, including a label and checkbox.
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanSettingGui(BooleanSetting setting, String label) BooleanSettingGui(BooleanSetting setting, String label, boolean listen) BooleanSettingGui(BooleanSetting setting, String label, boolean listen, Supplier<Boolean> enabled) BooleanSettingGui(BooleanSetting setting, String label, Supplier<Boolean> enabled) -
Method Summary
-
Constructor Details
-
BooleanSettingGui
- Parameters:
setting- The BooleanSettinglabel- The user-facing label to display
-
BooleanSettingGui
- Parameters:
setting- The BooleanSettinglabel- The user-facing label to displayenabled- Condition for whether this setting is enabled
-
BooleanSettingGui
- Parameters:
setting- The BooleanSettinglabel- The user-facing label to displaylisten- 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 BooleanSettinglabel- The user-facing label to displaylisten- Whether to listen to the setting and reflect any outside changes to the settingenabled- Condition for whether this setting is enabled
-
-
Method Details
-
getComponent
- Returns:
- The actual component
-