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