|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A listener class for enactors. Any listener registered with an enactor gets called whenever the relevent events occur with that enactor. Listeners can listen to many enactors; the particular enactor responsible for calling an enactor can be retrieved through EnactorReference or EnactorParameter arguments. EnactorListeners currently do not receive componentAdded calls for all components for which they might receive componentEvaluated calls, if they are added to an enactor after a particular component was added. This may change if/when stricter semantics guaranteeing adds before evaluations is implemented. TODO: modify this comment when semantics are modified
Field Summary | |
static java.lang.String |
ACTION_TRIGGERED
|
static java.lang.String |
COMPONENT_ADDED
|
static java.lang.String |
COMPONENT_EVALUATED
|
static java.lang.String |
COMPONENT_REMOVED
|
static java.lang.String |
PARAMETER_VALUE_CHANGED
|
Method Summary | |
void |
componentAdded(EnactorReference rwr,
ComponentDescription widgetDescription,
Attributes paramAtts)
called when a new CTK component matches an enactor reference. |
void |
componentEvaluated(EnactorReference rwr,
ComponentDescription widgetDescription)
called whenever a component is evaluated by an enactor. |
void |
componentRemoved(EnactorReference rwr,
ComponentDescription widgetDescription,
Attributes paramAtts)
called when a CTK component no longer matches an enactor reference. |
void |
parameterValueChanged(EnactorParameter parameter,
Attributes validAtts,
java.lang.Object value)
called when the value of an enactor parameter changes. |
Field Detail |
public static final java.lang.String COMPONENT_EVALUATED
public static final java.lang.String COMPONENT_ADDED
public static final java.lang.String COMPONENT_REMOVED
public static final java.lang.String PARAMETER_VALUE_CHANGED
public static final java.lang.String ACTION_TRIGGERED
Method Detail |
public void componentEvaluated(EnactorReference rwr, ComponentDescription widgetDescription)
rwr
- the reference that evaluated the component.widgetDescription
- public void componentAdded(EnactorReference rwr, ComponentDescription widgetDescription, Attributes paramAtts)
rwr
- the relevant enactor referencewidgetDescription
- the description of the added componentparamAtts
- initial values for any enactor parameters for this componentpublic void componentRemoved(EnactorReference rwr, ComponentDescription widgetDescription, Attributes paramAtts)
rwr
- the relevant enactor referencewidgetDescription
- the description of the removed componentparamAtts
- any enactor parameter values of the componentpublic void parameterValueChanged(EnactorParameter parameter, Attributes validAtts, java.lang.Object value)
parameter
- the enactor parametervalidAtts
- attributes for which the change occursvalue
- the new value of the changed parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |