C - Type of component.P - Type of bean property.public abstract class AbstractComponentProperty<C extends Component,P>
extends com.google.code.validationframework.base.property.AbstractReadableWritableProperty<P,P>
implements com.google.code.validationframework.api.common.Disposable
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() |
P |
getValue() |
protected abstract void |
setPropertyValueToComponent(P value) |
void |
setValue(P value) |
addValueChangeListener, getValueChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeValueChangeListener, setInhibitedpublic void dispose()
dispose in interface com.google.code.validationframework.api.common.DisposableDisposable.dispose()public P getValue()
getValue in interface com.google.code.validationframework.api.property.ReadableProperty<P>ReadableProperty.getValue()public void setValue(P value)
setValue in interface com.google.code.validationframework.api.property.WritableProperty<P>WritableProperty.setValue(Object)protected abstract P getPropertyValueFromComponent()
protected abstract void setPropertyValueToComponent(P value)
Copyright © 2015. All Rights Reserved.