org.kaariboga.core
Class Kaariboga.FireEventThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.kaariboga.core.Kaariboga.FireEventThread
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable
Enclosing class:
Kaariboga

class Kaariboga.FireEventThread
extends java.lang.Thread
implements java.io.Serializable

Fires kaariboga events to the kaaribogaListener. This thread is needed to fire events in an asynchronous way. Asynchronous event firering should be done because result of an event could be destruction of the kaariboga. Also some reactions to these events could be time consuming.

See Also:
Serialized Form

Field Summary
private  KaaribogaEvent event
          The event that has to be fired.
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
Kaariboga.FireEventThread(KaaribogaEvent e)
           
 
Method Summary
 void run()
          Checks the events id and calls the appropriate method of the event listener.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

event

private KaaribogaEvent event
The event that has to be fired.
Constructor Detail

Kaariboga.FireEventThread

public Kaariboga.FireEventThread(KaaribogaEvent e)
Parameters:
e - The event that has to be fired.
Method Detail

run

public void run()
Checks the events id and calls the appropriate method of the event listener.
Overrides:
run in class java.lang.Thread