context.arch.enactor
Class EnactorReference
java.lang.Object
context.arch.enactor.EnactorReference
- public abstract class EnactorReference
- extends java.lang.Object
Fully describes a widget via a set of attributes, and a set of conditions on
those attributes. Any attribute conditioned on should be represented in
Attributes.
TODO: enforce data correspondence, possible change over to collections.
- Author:
- alann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descriptionQuery
protected AbstractQueryItem descriptionQuery
enactor
protected Enactor enactor
EnactorReference
public EnactorReference()
setEnactor
public void setEnactor(Enactor r)
getEnactor
public Enactor getEnactor()
setDescriptionQuery
public void setDescriptionQuery(AbstractQueryItem dq)
getDescriptionQuery
public AbstractQueryItem getDescriptionQuery()
evaluateComponent
public void evaluateComponent(java.lang.String componentSubId,
ComponentDescription widgetState)
- This method is called when a new batch of state data concerning a widget
should be evaluated by this EnactorReference.
- Parameters:
widgetState
- the current state of the widget
componentAdded
public void componentAdded(java.lang.String widgetSubId,
ComponentDescription widgetState)
- Called whenever a widget satisfies the EnactorReference
descriptionQuery. A call to this method is advance notice that
evaluateWidget will be called with this widgetSubId. A EnactorReference
may override this method to provide more custom parameter Attributes to be
set up by the Enactor, if unsure just leave the third arg null.
- Parameters:
widgetSubId
-
componentRemoved
public void componentRemoved(java.lang.String widgetSubId,
ComponentDescription widgetState)
- Called whenever a widget no longer satisfies the descriptionQuery.
- Parameters:
widgetSubId
-