Interface SettingsPanelSetting
public interface SettingsPanelSetting
Represents an entry within a Settings panel.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic SettingsPanelSetting
booleanSetting
(String name) Used to build a checkbox.static SettingsPanelSetting
booleanSetting
(String name, boolean defaultValue) Used to a checkbox that is set via an initial selection state.static SettingsPanelSetting
integerSetting
(String name) Used to build a text field that only accepts integer values.static SettingsPanelSetting
integerSetting
(String name, int defaultValue) Used to build a text field that only accepts integer values and has an initial value.static SettingsPanelSetting
listSetting
(String name, String... values) Used to build a combo box.static SettingsPanelSetting
listSetting
(String name, List<String> values, String defaultValue) Used to build a combo box that has a specific initial value selected.static SettingsPanelSetting
stringSetting
(String name) Used to build a text field.static SettingsPanelSetting
stringSetting
(String name, String defaultValue) Used to build a text field that has an initial value.
-
Method Details
-
integerSetting
Used to build a text field that only accepts integer values.- Parameters:
name
- the name used to access the associated data viaSettingsPanelWithData
.- Returns:
- the SettingsPanelSetting.
-
integerSetting
Used to build a text field that only accepts integer values and has an initial value. If a value with the same name has been previously persisted value then this will be used instead of the default value.- Parameters:
name
- the name used to access the associated data viaSettingsPanelWithData
.defaultValue
- the initial value.- Returns:
- the SettingsPanelSetting.
-
booleanSetting
Used to build a checkbox.- Parameters:
name
- the name used to access the associated data viaSettingsPanelWithData
.- Returns:
- the SettingsPanelSetting.
-
booleanSetting
Used to a checkbox that is set via an initial selection state. If a value with the same name has been previously persisted state then this will be used instead of the default state.- Parameters:
name
- the name used to access the associated data viaSettingsPanelWithData
.defaultValue
- the initial value.- Returns:
- the SettingsPanelSetting.
-
stringSetting
Used to build a text field.- Parameters:
name
- the name used to access the associated data viaSettingsPanelWithData
.- Returns:
- the SettingsPanelSetting.
-
stringSetting
Used to build a text field that has an initial value. If a value with the same name has been previously persisted value then this will be used instead of the default value.- Parameters:
name
- the name used to access the associated data viaSettingsPanelWithData
.defaultValue
- the initial value.- Returns:
- the SettingsPanelSetting.
-
listSetting
Used to build a combo box.- Parameters:
name
- the name used to access the associated data viaSettingsPanelWithData
.values
- the values to use within the combo box.- Returns:
- the SettingsPanelSetting.
-
listSetting
Used to build a combo box that has a specific initial value selected. If a value with the same name has been previously persisted value then this will be used instead of the default value.- Parameters:
name
- the name used to access the associated data viaSettingsPanelWithData
.values
- the values to use within the combo box.defaultValue
- the initial value.- Returns:
- the SettingsPanelSetting.
-