public class JToggleButtonSelectedProperty extends com.github.leanframeworks.propertiesframework.base.property.AbstractReadableWritableProperty<Boolean>
JToggleButton.
This includes toggle buttons, radio buttons and checkboxes.
It is possible to control the selected state of the component by setting the value of this property or by calling the
AbstractButton.setSelected(boolean) method of that component.
Finally note that null values are not supported by this property.
| Constructor and Description |
|---|
JToggleButtonSelectedProperty(JToggleButton component)
Constructor specifying the component for which the property applies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Boolean |
getValue() |
void |
setValue(Boolean value) |
addChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic JToggleButtonSelectedProperty(JToggleButton component)
component - Component whose selected state 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<Boolean>Disposable.dispose()public Boolean getValue()
ReadableProperty.getValue()public void setValue(Boolean value)
WritableProperty.setValue(Object)Copyright © 2017. All rights reserved.