|
|||||||||||
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 | +--edu.umd.cs.jazz.event.ZNodeEvent
ZNodeEvent is an event which indicates that a node has changed.
Node events are provided for notification purposes ONLY; Jazz will automatically handle changes to the node contents internally so that the program works properly regardless of whether the program is receiving these events or not.
This event is generated by a ZNode when a node's bounds are changed. The event is passed to every ZNodeListener
or ZNodeAdapter
object which registered to receive such events using the Node's addNodeListener
method. (ZNodeAdapter
objects implement the ZNodeListener
interface.) Each such listener object gets this ZNodeEvent
when the event occurs.
Warning: Serialized and ZSerialized objects of this class will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.
ZNodeAdapter
, ZNodeListener
, Serialized Form
Field Summary | |
static int |
BOUNDS_CHANGED This event indicates that a node's bounds changed. |
static int |
GLOBAL_BOUNDS_CHANGED This event indicates that a node's global bounds changed. |
static int |
NODE_FIRST The first number in the range of ids used for node events. |
static int |
NODE_LAST The last number in the range of ids used for node events. |
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 | |
|
ZNodeEvent(ZNode source, int id) Deprecated. as of Jazz 1.1, use createBoundsChangedEvent() or createGlobalBoundsChanged() instead. |
protected |
ZNodeEvent(ZNode source, int id, java.lang.Object dummy) |
Method Summary | |
void |
consume() Consume this event. |
static ZNodeEvent |
createBoundsChangedEvent(ZNode aNode) Factory method to create a ZNodeEvent with a BOUNDS_CHANGED ID. |
static ZNodeEvent |
createGlobalBoundsChangedEvent(ZNode aNode) Factory method to create a ZNodeEvent with a GLOBAL_BOUNDS_CHANGED ID. |
void |
dispatchTo(java.lang.Object listener) Calls appropriate method on the listener based on this events ID. |
java.lang.Class |
getListenerType() Returns the ZNodeLister class. |
ZNode |
getNode() Returns the node whose bounds has changed. |
boolean |
isConsumed() True if this event has been consumed. |
void |
setSource(java.lang.Object aSource) Set the souce of this event. |
Methods inherited from class java.awt.AWTEvent |
getID, paramString, 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 NODE_FIRST
public static final int NODE_LAST
public static final int BOUNDS_CHANGED
public static final int GLOBAL_BOUNDS_CHANGED
Constructor Detail |
public ZNodeEvent(ZNode source, int id)
source
- the ZNode object that originated the event, and whose bounds have changed.id
- an integer indicating the type of eventprotected ZNodeEvent(ZNode source, int id, java.lang.Object dummy)
Method Detail |
public static ZNodeEvent createBoundsChangedEvent(ZNode aNode)
public static ZNodeEvent createGlobalBoundsChangedEvent(ZNode aNode)
public ZNode getNode()
public boolean isConsumed()
isConsumed
in interface ZEvent
isConsumed
in class java.awt.AWTEvent
public void consume()
consume
in class java.awt.AWTEvent
public void dispatchTo(java.lang.Object listener)
dispatchTo
in interface ZEvent
public java.lang.Class getListenerType()
getListenerType
in interface ZEvent
public void setSource(java.lang.Object aSource)
setSource
in interface ZEvent
setSource
in class java.awt.AWTEvent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |