public class ComponentEnabledProperty extends com.google.code.validationframework.base.property.AbstractReadableWritableProperty<Boolean,Boolean> implements com.google.code.validationframework.api.common.Disposable
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.
If the value of this property is set to null, the component enabled state will not be changed.| Constructor and Description |
|---|
ComponentEnabledProperty(Component component)
Constructor specifying the component for which the property applies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Boolean |
getValue() |
void |
setValue(Boolean value) |
addValueChangeListener, notifyListeners, notifyListeners, removeValueChangeListenerpublic ComponentEnabledProperty(Component component)
component - Component whose enabled property is to be tracked.public void dispose()
dispose in interface com.google.code.validationframework.api.common.DisposableDisposable.dispose()public Boolean getValue()
getValue in interface com.google.code.validationframework.api.property.ReadableProperty<Boolean>ReadableProperty.getValue()Copyright © 2014. All Rights Reserved.