Interface SettingsPanelSetting
public interface SettingsPanelSetting
Represents an entry within a Settings panel.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic SettingsPanelSettingbooleanSetting(String name) Used to build a checkbox.static SettingsPanelSettingbooleanSetting(String name, boolean defaultValue) Used to a checkbox that is set via an initial selection state.static SettingsPanelSettingbooleanSetting(String description, String name) Used to build a checkbox with a description.static SettingsPanelSettingbooleanSetting(String description, String name, boolean defaultValue) Used to build a checkbox with a description that is set via an initial selection state.static SettingsPanelSettingintegerSetting(String name) Used to build a text field that only accepts integer values.static SettingsPanelSettingintegerSetting(String name, int defaultValue) Used to build a text field that only accepts integer values and has an initial value.static SettingsPanelSettingintegerSetting(String description, String name) Used to build a text field with a description that only accepts integer values.static SettingsPanelSettingintegerSetting(String description, String name, int defaultValue) Used to build a text field with a description that only accepts integer values and has an initial value.static SettingsPanelSettinglistSetting(String name, String... values) Used to build a combo box.static SettingsPanelSettingUsed to build a combo box with a description that has a specific initial value selected.static SettingsPanelSettinglistSetting(String name, List<String> values, String defaultValue) Used to build a combo box that has a specific initial value selected.static SettingsPanelSettingstringSetting(String name) Used to build a text field.static SettingsPanelSettingstringSetting(String name, String defaultValue) Used to build a text field that has an initial value.static SettingsPanelSettingstringSetting(String description, String name, String defaultValue) Used to build a text field with a description 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.
-
integerSetting
Used to build a text field with a description that only accepts integer values.- Parameters:
description- the description displayed for this setting.name- the name used to access the associated data viaSettingsPanelWithData.- Returns:
- the SettingsPanelSetting.
-
integerSetting
Used to build a text field with a description 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:
description- the description displayed for this setting.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.
-
booleanSetting
Used to build a checkbox with a description.- Parameters:
description- the description displayed for this setting.name- the name used to access the associated data viaSettingsPanelWithData.- Returns:
- the SettingsPanelSetting.
-
booleanSetting
Used to build a checkbox with a description 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:
description- the description displayed for this setting.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.
-
stringSetting
Used to build a text field with a description 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:
description- the description displayed for this setting.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.
-
listSetting
static SettingsPanelSetting listSetting(String description, String name, List<String> values, String defaultValue) Used to build a combo box with a description 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:
description- the description displayed for this setting.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.
-