edu.umd.cs.jazz.event
Class ZGroupEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.awt.AWTEvent
|
+--edu.umd.cs.jazz.event.ZGroupEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ZGroupEvent
- extends java.awt.AWTEvent
ZGroupEvent is an event which indicates that a group node has changed.
Group events are provided for notification purposes ONLY;
Jazz will automatically handle changes to the group
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 ZGroup
when a node is added or removed from it.
The event is passed to every ZGroupListener
or ZGroupAdapter object which registered to receive such
events using the group's addGroupListener method.
(ZGroupAdapter objects implement the
ZGroupListener interface.) Each such listener object
gets this ZGroupEvent when the event occurs.
- See Also:
ZGroupAdapter,
ZGroupListener, Serialized Form
|
Field Summary |
static int |
GROUP_FIRST
The first number in the range of ids used for group events. |
static int |
GROUP_LAST
The last number in the range of ids used for group events. |
static int |
NODE_ADDED
This event indicates that a node was added to the group. |
static int |
NODE_REMOVED
This event indicates that a node was removed from the group. |
| 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,
PAINT_EVENT_MASK,
RESERVED_ID_MAX,
TEXT_EVENT_MASK,
WINDOW_EVENT_MASK |
| Fields inherited from class java.util.EventObject |
source |
|
Method Summary |
ZNode |
getChild()
Returns the ZNode that was affected by the event. |
ZGroup |
getGroup()
Returns the originator of the event. |
| Methods inherited from class java.awt.AWTEvent |
consume,
finalize,
getID,
isConsumed,
paramString,
toString |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
GROUP_FIRST
public static final int GROUP_FIRST
- The first number in the range of ids used for group events.
GROUP_LAST
public static final int GROUP_LAST
- The last number in the range of ids used for group events.
NODE_ADDED
public static final int NODE_ADDED
- This event indicates that a node was added to the group.
NODE_REMOVED
public static final int NODE_REMOVED
- This event indicates that a node was removed from the group.
ZGroupEvent
public ZGroupEvent(ZGroup source,
int id,
ZNode child)
- Constructs a ZGroupEvent object.
- Parameters:
source - the ZGroup object that originated the eventid - an integer indicating the type of eventchild - the node that was added or removed
getGroup
public ZGroup getGroup()
- Returns the originator of the event.
- Returns:
- the ZGroup object that originated the event
getChild
public ZNode getChild()
- Returns the ZNode that was affected by the event.
- Returns:
- the ZNode object that was added or removed