net.clackrouter.component.base
Class ClackComponentEvent

java.lang.Object
  extended by net.clackrouter.component.base.ClackComponentEvent
Direct Known Subclasses:
TCP.UpdateEvent

public class ClackComponentEvent
extends java.lang.Object

Class representing clack component events, used to pass information to listening entities

See Also:
ClackComponent.registerListener(ClackComponentListener)

Field Summary
static int EVENT_CONNECTION_CHANGE
          A component has either had a connection added or removed
static int EVENT_DATA_CHANGE
          A generic change to component internal state
static int EVENT_PACKET_IN
          The component received a packet
static int EVENT_PACKET_OUT
          The component sent a packet
 int mType
           
 java.lang.Object mValue
           
 
Constructor Summary
ClackComponentEvent(int t)
           
ClackComponentEvent(int t, java.lang.Object value)
           
 
Method Summary
static int getUniqueInt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_DATA_CHANGE

public static int EVENT_DATA_CHANGE
A generic change to component internal state


EVENT_PACKET_IN

public static int EVENT_PACKET_IN
The component received a packet


EVENT_PACKET_OUT

public static int EVENT_PACKET_OUT
The component sent a packet


EVENT_CONNECTION_CHANGE

public static int EVENT_CONNECTION_CHANGE
A component has either had a connection added or removed


mType

public int mType

mValue

public java.lang.Object mValue
Constructor Detail

ClackComponentEvent

public ClackComponentEvent(int t,
                           java.lang.Object value)

ClackComponentEvent

public ClackComponentEvent(int t)
Method Detail

getUniqueInt

public static int getUniqueInt()