C - Type of component.P - Type of bean property.public abstract class AbstractComponentProperty<C extends Component,P>
extends com.github.leanframeworks.propertiesframework.base.property.AbstractReadableWritableProperty<P>
Component that can
be tracked using a PropertyChangeListener.
It is possible to control the bean property of the component by setting the value of this property or by calling the bean property setter method of that component.
| Modifier and Type | Field and Description |
|---|---|
protected C |
component
Component to track the bean property of.
|
| Constructor and Description |
|---|
AbstractComponentProperty(C component,
String propertyName)
Constructor specifying the component for which the property applies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected abstract P |
getPropertyValueFromComponent()
Reads the value from
component. |
P |
getValue() |
protected abstract void |
setPropertyValueToComponent(P value)
Sets the value to
component. |
void |
setValue(P value) |
addChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic void dispose()
dispose in interface com.github.leanframeworks.propertiesframework.api.common.Disposabledispose in class com.github.leanframeworks.propertiesframework.base.property.AbstractReadableProperty<P>Disposable.dispose()public P getValue()
ReadableProperty.getValue()public void setValue(P value)
WritableProperty.setValue(Object)protected abstract P getPropertyValueFromComponent()
protected abstract void setPropertyValueToComponent(P value)
value - Component value.Copyright © 2017. All rights reserved.