public class BarSizeDescriptor extends SettingDescriptor
Constructor and Description |
---|
BarSizeDescriptor(java.lang.String name,
java.lang.String label,
BarSize defaultValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createInput(Settings settings,
boolean readOnly)
Creates the component that will accept the user input.
|
BarSize |
getDefaultValue()
Gets the default value as a bar size.
|
getGridWidth, getLabel, getName, isAllowUserDefaults, isDisplaySetting, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setEnabled, setGridWidth, setShowLabel, setSupportsDisable
public BarSizeDescriptor(java.lang.String name, java.lang.String label, BarSize defaultValue)
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default bar sizepublic BarSize 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