edu.washington.cs.supple.trace
Class TraceEvent
java.lang.Object
java.util.EventObject
edu.washington.cs.supple.util.SuppleEvent
edu.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
| Fields inherited from class java.util.EventObject |
source |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
TraceEvent
public TraceEvent(java.lang.Object source,
UiObject object,
int type)
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