|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.event.ZSelectionDeleteHandler
ZSelectionDeleteHandler is a selection handler for use with a
ZSelectionManager. ZSelectionDeleteHandler
allows
the user to delete the current selection by pressing the DEL key.
ZSelectionDeleteHandler also allows registration of ZGroupListener instances to be notified when items are deleted.
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.
ZSelectionManager
,
ZCompositeSelectionHandler
, Serialized FormField Summary | |
protected javax.swing.event.EventListenerList |
listenerList
registered event listeners |
Constructor Summary | |
ZSelectionDeleteHandler(ZNode node,
ZCamera camera,
ZCanvas canvas)
Construct a new ZSelectionDeleteHandler. |
|
ZSelectionDeleteHandler(ZNode node,
ZCanvas canvas)
Construct a new ZSelectionDeleteHandler. |
Method Summary | |
void |
addGroupListener(ZGroupListener l)
Add a ZGroupListener, registered for nodeRemoved events. |
protected void |
fireGroupEvent(int id,
ZGroup parent,
ZNode child)
Notifies all listeners that have registered interest for notification on this event type. |
boolean |
isActive()
Determines if this event handler is active. |
void |
keyPressed(java.awt.event.KeyEvent e)
Key press event handler |
void |
keyReleased(java.awt.event.KeyEvent e)
Key release event handler |
void |
keyTyped(java.awt.event.KeyEvent e)
Key typed event handler |
void |
removeGroupListener(ZGroupListener l)
Remove a ZGroupListener, registered for nodeRemoved events. |
void |
setActive(boolean active)
Specifies whether this event handler is active |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient javax.swing.event.EventListenerList listenerList
Constructor Detail |
public ZSelectionDeleteHandler(ZNode node, ZCanvas canvas)
node
- The node this delete handler attaches tocanvas
- The canvas this handler is active onpublic ZSelectionDeleteHandler(ZNode node, ZCamera camera, ZCanvas canvas)
node
- The node this delete handler attaches tocamera
- The camera this delete handler attaches tocanvas
- The canvas this handler is active onMethod Detail |
public void setActive(boolean active)
setActive
in interface ZEventHandler
active
- True to make this event handler activepublic boolean isActive()
isActive
in interface ZEventHandler
public void addGroupListener(ZGroupListener l)
public void removeGroupListener(ZGroupListener l)
protected void fireGroupEvent(int id, ZGroup parent, ZNode child)
id
- The event id (NODE_ADDED, NODE_REMOVED)child
- The child being added or removed from this nodeEventListenerList
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
e
- The event.public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
e
- The event.public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
e
- The event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |