P - Type of bean property.public class ActionProperty<P>
extends com.github.leanframeworks.propertiesframework.base.property.AbstractReadableWritableProperty<P>
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()
Effectively gets the value from the property of the action.
|
P |
getValue() |
protected void |
setPropertyValueToAction(P value)
Effectively sets the value to the property of the action.
|
void |
setValue(P value) |
addChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedprotected Action action
public 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 P getPropertyValueFromAction()
protected void setPropertyValueToAction(P value)
value - New action property value.Copyright © 2017. All rights reserved.