edu.washington.cs.supple.trace
Class TraceEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byedu.washington.cs.supple.util.SuppleEvent
          extended byedu.washington.cs.supple.trace.TraceEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActionExecutionEvent, ValueChangeEvent

public class TraceEvent
extends SuppleEvent

Author:
kgajos Event object for reporting and storing UI events
See Also:
Serialized Form

Field Summary
static int ACTION_EXECUTION
           
protected  java.util.Date date
           
protected static java.text.DateFormat dateFormat
           
protected  java.lang.String dateString
           
protected  int type
           
protected  UiObject uiObject
           
protected  java.lang.String uiObjectName
           
static int VALUE_CHANGE
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TraceEvent(java.lang.Object source, UiObject object, int type)
           
 
Method Summary
protected  UiObject ensureNonShortcut(UiObject o)
          Makes sure that what we deal with is a real piece of functionality and not a shortcut
 boolean equals(java.lang.Object o)
           
 java.util.Date getDate()
           
 int getType()
           
 UiObject getUiObject()
           
 java.lang.String getUiObjectName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUE_CHANGE

public static final int VALUE_CHANGE
See Also:
Constant Field Values

ACTION_EXECUTION

public static final int ACTION_EXECUTION
See Also:
Constant Field Values

type

protected int type

date

protected java.util.Date date

dateFormat

protected static java.text.DateFormat dateFormat

dateString

protected java.lang.String dateString

uiObjectName

protected java.lang.String uiObjectName

uiObject

protected transient UiObject uiObject
Constructor Detail

TraceEvent

public TraceEvent(java.lang.Object source,
                  UiObject object,
                  int type)
Method Detail

getType

public int getType()

getDate

public java.util.Date getDate()

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)

getUiObjectName

public java.lang.String getUiObjectName()
Returns:
the full name of the UI object this event pertains to

getUiObject

public UiObject getUiObject()

ensureNonShortcut

protected UiObject ensureNonShortcut(UiObject o)
Makes sure that what we deal with is a real piece of functionality and not a shortcut

Parameters:
o - a ui object (basic or shortcut)
Returns:
a basic ui object