public class RuleDependencyListener<T,E extends de.tsl2.nano.core.messaging.ChangeEvent> extends AbstractDependencyListener<T,E> implements Serializable
attribute, attributeID, changes, propertyName| Constructor and Description |
|---|
RuleDependencyListener()
constructor
|
RuleDependencyListener(IAttributeDefinition<T> attribute,
String propertyName,
String ruleName)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
evaluate(E evt)
evaluate a new value through a rule. the events source (a beanvalue) and all parents attributes will be given to
the rule as arguments.
|
void |
handleEvent(E event) |
protected BeanValue |
initAttribute(E source) |
String |
toString() |
clone, getAttribute, getStateObject, reset, setAttribute, setStateObjectpublic RuleDependencyListener()
public RuleDependencyListener(IAttributeDefinition<T> attribute, String propertyName, String ruleName)
attribute - propertyName - public void handleEvent(E event)
handleEvent in interface de.tsl2.nano.core.messaging.IListener<E extends de.tsl2.nano.core.messaging.ChangeEvent>protected T evaluate(E evt)
evt - event holding the new foreign valuepublic String toString()
toString in class AbstractDependencyListener<T,E extends de.tsl2.nano.core.messaging.ChangeEvent>Copyright © 2012–2018. All rights reserved.