gestIT
Class StateChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gestIT.StateChangedEvent
All Implemented Interfaces:
java.io.Serializable

public class StateChangedEvent
extends java.util.EventObject

Class that represent an event sent with an event. Programmers should use this class to gather information about an event, and datas that has generated it.

Author:
nicola
See Also:
Serialized Form

Constructor Summary
StateChangedEvent(TmpExp source, ExpEventArgs args, Token tok)
          Generic Constructor
 
Method Summary
 ExpEventArgs getEventArgs()
          Getter method for getting the args
 TmpExp getSender()
          Getter method for getting the sender
 Token getToken()
          Getter method for getting the token
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateChangedEvent

public StateChangedEvent(TmpExp source,
                         ExpEventArgs args,
                         Token tok)
Generic Constructor

Parameters:
source - Gesture block that has generated the event
args - Arguments that has generated the event
tok - Token containing past datas
Method Detail

getSender

public TmpExp getSender()
Getter method for getting the sender

Returns:
The TmpExp object that has generated the event

getEventArgs

public ExpEventArgs getEventArgs()
Getter method for getting the args

Returns:
The ExpEventArgs object that has generated the event

getToken

public Token getToken()
Getter method for getting the token

Returns:
The Token that contains past datas