|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--java.awt.AWTEvent | +--TreeMessageEvent
A semantic event which indicates that a TreeMessage-defined action occured.
This high-level event is generated by an Tree Object when
an action occurs (such as a change in size).
The event is passed to every TreeMessageListener
object
that registered to receive such events using the Animation's
addTreeMessageListener
method.
The object that implements the TreeMessageListener
interface
gets this TreeMessageEvent
when the event occurs. The listener
is therefore spared the details of processing individual selection, and can
instead process a "meaningful" (semantic) event.
Field Summary | |
static int |
ANIMATION
ID for the Animation event. |
static java.lang.String |
ANIMATION_CHANGE
command passed for animation change. |
static java.lang.String |
ANIMATION_STEP_CHANGE
command passed for animation step change. |
static java.lang.String |
COLOR_CHANGE
command passed for a change in color choice. |
static java.lang.String |
COLOR_PANEL
command passed for color panel request. |
static java.lang.String |
ERROR_MESSAGE
command passed for an error message. |
static java.lang.String |
KEY_TYPE_CHANGE
command passed for change of key type. |
static int |
PANEL
ID for the Panel event. |
static java.lang.String |
SET_INPUT_OPTIONS
command passed for set input options request. |
static java.lang.String |
SET_PRESET_COLOR_OPTIONS
command passed for set color settings request. |
static java.lang.String |
STATUS_MESSAGE
command passed for status message. |
static int |
TREE
ID for the Tree event. |
Fields inherited from class java.awt.AWTEvent |
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
TreeMessageEvent(java.lang.Object source,
int id,
java.lang.String msg)
Constructs a TreeMessageEvent object. |
|
TreeMessageEvent(java.lang.Object source,
int id,
java.lang.String msg,
java.lang.Object msgObject)
Constructs a TreeMessageEvent object with a message object. |
Method Summary | |
java.lang.String |
getMessage()
Returns the description String associated with this AnimationEvent. |
java.lang.Object |
getMessageObject()
Returns the status String associated with this AnimationEvent. |
Methods inherited from class java.awt.AWTEvent |
consume, getID, isConsumed, paramString, setSource, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TREE
public static final int PANEL
public static final int ANIMATION
public static final java.lang.String KEY_TYPE_CHANGE
public static final java.lang.String ERROR_MESSAGE
public static final java.lang.String COLOR_PANEL
public static final java.lang.String ANIMATION_CHANGE
public static final java.lang.String ANIMATION_STEP_CHANGE
public static final java.lang.String STATUS_MESSAGE
public static final java.lang.String SET_INPUT_OPTIONS
public static final java.lang.String SET_PRESET_COLOR_OPTIONS
public static final java.lang.String COLOR_CHANGE
Constructor Detail |
public TreeMessageEvent(java.lang.Object source, int id, java.lang.String msg)
TreeMessageEvent
object.
source
- the object that originated the eventid
- an integer that identifies the eventmsg
- String message.public TreeMessageEvent(java.lang.Object source, int id, java.lang.String msg, java.lang.Object msgObject)
TreeMessageEvent
object with a message object.
source
- the object that originated the eventid
- an integer that identifies the eventmsg
- String message.msgObject
- object that refers to the String message.Method Detail |
public java.lang.String getMessage()
public java.lang.Object getMessageObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |