P - Type of bean property.public class ActionProperty<P>
extends com.google.code.validationframework.base.property.AbstractReadableWritableProperty<P,P>
implements com.google.code.validationframework.api.common.Disposable
Action that can be tracked
using a PropertyChangeListener.
It is possible to control the bean property of the action by setting the value of this property or by calling the
bean property setter method of that action.
Refer to Action for a list of supported property names, as well as the associated types and values.Action| Modifier and Type | Field and Description |
|---|---|
protected Action |
action
Action to track the bean property of.
|
| Constructor and Description |
|---|
ActionProperty(Action action,
String propertyName)
Constructor specifying the action for which the property applies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected P |
getPropertyValueFromAction() |
P |
getValue() |
protected void |
setPropertyValueToAction(P value) |
void |
setValue(P value) |
addValueChangeListener, getValueChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeValueChangeListener, setInhibitedprotected final Action action
public 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 P getPropertyValueFromAction()
protected void setPropertyValueToAction(P value)
Copyright © 2015. All Rights Reserved.