public class JComboBoxSelectedIndexProperty extends com.github.leanframeworks.propertiesframework.base.property.AbstractReadableWritableProperty<Integer>
JComboBox.
It is possible to control the selected index of the component by setting the value of this property or by calling the
JComboBox.setSelectedIndex(int) or JComboBox.setSelectedItem(Object) methods of that component.
If the value of this property is set to null, the component selected index will not be changed.
| Constructor and Description |
|---|
JComboBoxSelectedIndexProperty(JComboBox component)
Constructor specifying the component for which the property applies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Integer |
getValue() |
void |
setValue(Integer value) |
addChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic JComboBoxSelectedIndexProperty(JComboBox component)
component - Component whose selected property is to be tracked.public void dispose()
dispose in interface com.github.leanframeworks.propertiesframework.api.common.Disposabledispose in class com.github.leanframeworks.propertiesframework.base.property.AbstractReadableProperty<Integer>Disposable.dispose()public Integer getValue()
ReadableProperty.getValue()public void setValue(Integer value)
WritableProperty.setValue(Object)Copyright © 2017. All rights reserved.