|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.taursys.xml.Component
com.taursys.xml.Container
com.taursys.xml.DispatchingContainer
DispatchingContainer is a Container which can
function as a top or intermediate level Container and has
its own set of event Dispatchers for its children. It responds to
ParameterEvents, InputEvents and
TriggerEvents by simply propagating the event to its children.
In response to a RenderEvent, it simply shows or hides the
Document Element and, if visible, dispatches a RenderEvent to
the children of the DocumentElement.
In response to a RecycleEvent, it simply makes the Document
Element visible, and dispatches a RecycleEvent to
the children of the DocumentElement.
| Constructor Summary | |
DispatchingContainer()
Constructs a new DispatchingContainer |
|
| Method Summary | |
void |
add(Component c)
Add a component to this container. |
protected InputDispatcher |
createInputDispatcher()
Create the InputDispatcher for this Container. |
protected ParameterDispatcher |
createParameterDispatcher()
Create the ParameterDispatcher for this Container. |
protected RecycleDispatcher |
createRecycleDispatcher()
Create the RecycleDispatcher for this Container. |
protected RenderDispatcher |
createRenderDispatcher()
Create the RenderDispatcher for this Container. |
protected TriggerDispatcher |
createTriggerDispatcher()
Create the TriggerDispatcher for this Container. |
protected void |
dispatchActions()
Initiate the dispatch of the TriggerEvent to registered
components using the current parameterMap. |
protected void |
dispatchInput()
Initiate the dispatch of the InputEvent to registered
components using the current parameterMap. |
protected void |
dispatchParameters()
Initiate the dispatch of the ParameterEvent to registered
components using the current parameterMap. |
protected void |
dispatchRecycle()
Initiate the dispatch of the RecycleEvent to registered
components. |
protected void |
dispatchRender()
Initiate the dispatch of the RenderEvent to registered
components. |
java.util.Map |
getParameterMap()
Get the Map of parameters contained in the request. |
protected void |
processInputEvent(InputEvent e)
Dispatches given InputEvent to children then notifies all
InputListeners of event. |
protected void |
processParameterEvent(ParameterEvent e)
Dispatches given ParameterEvent to children then notifies all
ParameterListeners of event. |
void |
processRecycleEvent(RecycleEvent e)
Dispatches given RecycleEvent to children then notifies all
RecycleListeners of event. |
void |
processRenderEvent(RenderEvent e)
Notifies all RenderListeners of given
RenderEvent then dispatches event to children. |
protected void |
processTriggerEvent(TriggerEvent e)
Dispatches given TriggerEvent to children then notifies all
TriggerListeners of event. |
void |
setParameterMap(java.util.Map map)
Set the Map of parameters contained in the request. |
| Methods inherited from class com.taursys.xml.Container |
addDispatcher, contains, get, getComponents, getDispatcher, getDispatchers, getDocumentAdapter, getInputDispatcher, getParameterDispatcher, getRecycleDispatcher, getRenderDispatcher, getTriggerDispatcher, remove, removeDispatcher, setComponents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DispatchingContainer()
| Method Detail |
protected ParameterDispatcher createParameterDispatcher()
protected InputDispatcher createInputDispatcher()
public void add(Component c)
add in class Containerprotected TriggerDispatcher createTriggerDispatcher()
protected RenderDispatcher createRenderDispatcher()
protected RecycleDispatcher createRecycleDispatcher()
public java.util.Map getParameterMap()
public void setParameterMap(java.util.Map map)
map - a Map of parameters contained in the request.
protected void dispatchParameters()
throws java.lang.Exception
ParameterEvent to registered
components using the current parameterMap.
java.lang.Exception
protected void dispatchInput()
throws java.lang.Exception
InputEvent to registered
components using the current parameterMap.
java.lang.Exception
protected void dispatchActions()
throws java.lang.Exception
TriggerEvent to registered
components using the current parameterMap.
java.lang.Exception
protected void dispatchRender()
throws java.lang.Exception
RenderEvent to registered
components.
java.lang.Exception
protected void dispatchRecycle()
throws java.lang.Exception
RecycleEvent to registered
components.
java.lang.Exception
protected void processParameterEvent(ParameterEvent e)
throws java.lang.Exception
ParameterEvent to children then notifies all
ParameterListeners of event.
processParameterEvent in class Componente - the ParameterEvent
java.lang.Exception - from child or listener in response to event
protected void processInputEvent(InputEvent e)
throws java.lang.Exception
InputEvent to children then notifies all
InputListeners of event.
processInputEvent in class Componente - the InputEvent
java.lang.Exception - from child or listener in response to event
protected void processTriggerEvent(TriggerEvent e)
throws java.lang.Exception
TriggerEvent to children then notifies all
TriggerListeners of event.
processTriggerEvent in class Componente - the TriggerEvent
java.lang.Exception - from child or listener in response to event
public void processRenderEvent(RenderEvent e)
throws RenderException
RenderListeners of given
RenderEvent then dispatches event to children.
processRenderEvent in class Componente - the RenderEvent
RenderException - from child or listener in response to event
public void processRecycleEvent(RecycleEvent e)
throws RecycleException
RecycleEvent to children then notifies all
RecycleListeners of event.
processRecycleEvent in class Componente - the RecycleEvent
RecycleException - from child or listener in response to event
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||