|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.flex.runtime.event.ModelerEventDispatcher
public class ModelerEventDispatcher
A thread that dispatches modeler events to a listener using a blocking queue.
Nested Class Summary | |
---|---|
static interface |
ModelerEventDispatcher.DispatchAction
A dispatch action. |
Constructor Summary | |
---|---|
ModelerEventDispatcher(ModelerListener listener)
Constructs a modeler event dispatcher. |
Method Summary | |
---|---|
void |
cancel()
Stops this dispatcher and abandons all events in queue. |
void |
clearQueue()
Clears the event queue. |
void |
dispatch(ModelerEventDispatcher.DispatchAction action)
Dispatches a custom event. |
void |
dispatchModelerActionPerformed(ModelerEvent me)
Dispatches a modeler event by calling the listener's modelerActionPerformed method. |
void |
dispatchModelerFinished(ModelerEvent me)
Dispatches a modeler event by calling the listener's moodelerFinished method. |
void |
dispatchModelerInterrupted(ModelerEvent me,
java.lang.Throwable t)
Dispatches a modeler event by calling the listener's modelerInterrupted method. |
void |
dispatchModelerStarting(ModelerEvent me)
Dispatches a modeler event by calling the listener's modelerStarting method. |
boolean |
isActive()
Checks whether this dispatcher is currently active. |
void |
start()
Starts this dispatcher. |
void |
stop()
Stops this dispatcher after all queued events are dispatched. |
void |
stopAndWait(long millis)
Waits until all the queued events are dispatched and then stops this dispatcher. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelerEventDispatcher(ModelerListener listener)
listener
- the listener to dispatch the events to
java.lang.IllegalArgumentException
- if the given listener is nullMethod Detail |
---|
public void start()
java.lang.IllegalStateException
- if this dispatcher is already activeisActive()
public void clearQueue()
cancel()
public void stopAndWait(long millis)
interrupt()
will be called on the dispatching thread.
millis
- the time to wait in milliseconds; 0 means to wait foreverpublic void stop()
public void cancel()
This method does not wait until the dispatcher is completely stopped. If an event is being dispatched while this method is invoked, the dispatcher will stop only after the last dispatch action is complete.
public boolean isActive()
public void dispatchModelerStarting(ModelerEvent me)
modelerStarting
method.
me
- the modeler eventpublic void dispatchModelerInterrupted(ModelerEvent me, java.lang.Throwable t)
modelerInterrupted
method.
me
- the modeler eventt
- the cause of the interruptionpublic void dispatchModelerFinished(ModelerEvent me)
moodelerFinished
method.
me
- the modeler eventpublic void dispatchModelerActionPerformed(ModelerEvent me)
modelerActionPerformed
method.
me
- the modeler eventpublic void dispatch(ModelerEventDispatcher.DispatchAction action)
action
- the dispatch action
java.lang.IllegalArgumentException
- if the given action is null
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |