com.taursys.xml.event
Class TriggerDispatcher

java.lang.Object
  extended bycom.taursys.xml.event.Dispatcher
      extended bycom.taursys.xml.event.TriggerDispatcher
Direct Known Subclasses:
TemplateTriggerDispatcher

public class TriggerDispatcher
extends Dispatcher

TriggerDispatcher is Dispatcher of TriggerEvents

Version:
1.0
Author:
Marty Phelan

Field Summary
 
Fields inherited from class com.taursys.xml.event.Dispatcher
components, map
 
Constructor Summary
TriggerDispatcher()
          Constructs a new TriggerDispatcher
 
Method Summary
 void dispatchToComponent(Component c)
          Dispatches a TriggerEvent to the given component.
 
Methods inherited from class com.taursys.xml.event.Dispatcher
addNotify, dispatch, dispatch, dispatch, getIndex, getParameter, getParentDispatcher, getParentIndex, incrementIndex, removeNotify, resetIndex, setParentDispatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggerDispatcher

public TriggerDispatcher()
Constructs a new TriggerDispatcher

Method Detail

dispatchToComponent

public void dispatchToComponent(Component c)
                         throws java.lang.Exception

Dispatches a TriggerEvent to the given component. If the given Component is a Container, a TriggerEvent with the entire value map is dispatched. If the given Component is a Trigger then normal dispatching occurs (see following). If the given Component is neither of the above two types, then no dispatching occurs.

The Trigger will only be dispatched its own input as specified by its parameter property. If the Trigger's parameter is present, then the event will contain that value. If the parameter is NOT present, AND the Trigger's isDefaultTrigger is true, then the event will contain the getText value. If the parameter is NOT present and isDefaultTrigger is false, no event will be dispatched.

Specified by:
dispatchToComponent in class Dispatcher
Parameters:
c - the Component to dispatch to
Throws:
java.lang.Exception - from the components dispatchEvent method if occurs.


Copyright © 2007 Martin T Phelan. All Rights Reserved.