org.eclipse.actf.model.events
Class ModelEvent
java.lang.Object
java.util.EventObject
org.eclipse.actf.model.events.ModelEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AccessibilityModelEvent
public abstract class ModelEvent
- extends EventObject
an event fired within a model
- Author:
- Serialized Form
TIMESTAMP_PROPERTY
public static final String TIMESTAMP_PROPERTY
- See Also:
- Constant Field Values
EVENT_TYPE_PROPERTY
public static final String EVENT_TYPE_PROPERTY
- See Also:
- Constant Field Values
properties
protected Map properties
ModelEvent
public ModelEvent(Object source)
- Parameters:
source
-
getProperty
public Object getProperty(String name)
setProperty
public void setProperty(String name,
Object value)
getTimeMillis
public long getTimeMillis()
- convenience method for getting the timestamp of the event
- Returns:
- timestamp of event
setTimeMillis
public void setTimeMillis(long time)
- convenience method for retreaving the timestamp of the event
- Parameters:
time
- timestamp of event
getEventType
public String getEventType()
- convenience method for getting the symbolic name or type of the event. This should be a more informative token than the
event id used by the underlying model.
- Returns:
- symbolic name or type of event
setEventType
public void setEventType(String eventType)
- convenience method for setting the symbolic name or type of the event. This should be a more informative token than the
event id used by the underlying model. Typically, this will be obtained from the corresponding
ModelEventType
object.
- Parameters:
eventType
- symbolic name or type of event- See Also:
ModelEventType