public class BooleanDescriptor extends SettingDescriptor
Constructor and Description |
---|
BooleanDescriptor(java.lang.String name,
java.lang.String label,
java.lang.Boolean defaultValue)
Constructor
|
BooleanDescriptor(java.lang.String name,
java.lang.String label,
java.lang.Boolean defaultValue,
boolean showLabel)
Constructor
|
BooleanDescriptor(java.lang.String name,
java.lang.String label,
java.lang.Boolean defaultValue,
boolean showLabel,
int gridWidth)
Constructor
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createInput(Settings settings,
boolean readOnly)
Creates the component that will accept the user input.
|
java.lang.Boolean |
getDefaultValue()
Gets the default value as a Boolean value.
|
getGridWidth, getLabel, getName, isAllowUserDefaults, isDisplaySetting, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setEnabled, setGridWidth, setShowLabel, setSupportsDisable
public BooleanDescriptor(java.lang.String name, java.lang.String label, java.lang.Boolean defaultValue)
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default boolean valuepublic BooleanDescriptor(java.lang.String name, java.lang.String label, java.lang.Boolean defaultValue, boolean showLabel)
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default boolean valueshowLabel
- indicates if the label should be displayedpublic BooleanDescriptor(java.lang.String name, java.lang.String label, java.lang.Boolean defaultValue, boolean showLabel, int gridWidth)
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default boolean valueshowLabel
- indicates if the label should be displayedgridWidth
- overrides the default grid width of 1public java.lang.Boolean getDefaultValue()
getDefaultValue
in class SettingDescriptor
public javax.swing.JComponent createInput(Settings settings, boolean readOnly)
SettingDescriptor
createInput
in class SettingDescriptor
settings
- settings for the studyreadOnly
- true if the component should not accept user input