public class ComponentEnabledProperty extends AbstractComponentProperty<Component,Boolean>
Component.
It is possible to control the enabled state of the component by setting the value of this property or by calling the
Component.setEnabled(boolean) method of that component.
Please note that a plain Component does not a fire property change event when it gets enabled/disabled. A
Swing JComponent does. However, the type Component is used by this property instead of
JComponent for convenience.
Finally note that null values are not supported by this property.
component| Constructor and Description |
|---|
ComponentEnabledProperty(Component component) |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
getPropertyValueFromComponent()
Reads the value from
AbstractComponentProperty.component. |
protected void |
setPropertyValueToComponent(Boolean value)
Sets the value to
AbstractComponentProperty.component. |
dispose, getValue, setValueaddChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic ComponentEnabledProperty(Component component)
protected Boolean getPropertyValueFromComponent()
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
getPropertyValueFromComponent in class AbstractComponentProperty<Component,Boolean>AbstractComponentProperty.getPropertyValueFromComponent()protected void setPropertyValueToComponent(Boolean value)
AbstractComponentPropertyAbstractComponentProperty.component.
Note that whenever this method is called, AbstractComponentProperty.component is not null.
setPropertyValueToComponent in class AbstractComponentProperty<Component,Boolean>value - Component value.AbstractComponentProperty.setPropertyValueToComponent(Object)Copyright © 2017. All rights reserved.