public class ComboBoxState extends Object implements Mergeable, Cloneable, Serializable
JComboBox
state holder.ComboBoxSettingsProcessor
,
UISettingsManager
,
SettingsManager
,
SettingsProcessor
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Integer |
selectedIndex
JComboBox selected index. |
Constructor and Description |
---|
ComboBoxState()
Constructs default
ComboBoxState . |
ComboBoxState(Integer selectedIndex)
Constructs new
ComboBoxState with specified settings. |
ComboBoxState(JComboBox comboBox)
Constructs new
ComboBoxState with settings from JComboBox . |
Modifier and Type | Method and Description |
---|---|
void |
apply(JComboBox comboBox)
Applies this
ComboBoxState to the specified JComboBox . |
Integer |
selectedIndex()
Returns
JComboBox selected index. |
public ComboBoxState()
ComboBoxState
.public ComboBoxState(JComboBox comboBox)
ComboBoxState
with settings from JComboBox
.comboBox
- JComboBox
to retrieve settings frompublic ComboBoxState(Integer selectedIndex)
ComboBoxState
with specified settings.selectedIndex
- JComboBox
selected indexpublic Integer selectedIndex()
JComboBox
selected index.JComboBox
selected indexpublic void apply(JComboBox comboBox)
ComboBoxState
to the specified JComboBox
.comboBox
- JComboBox
to apply this ComboBoxState
toCopyright © 2020. All rights reserved.