|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--java.awt.AWTEvent | +--gishur.core.event.GishurEvent | +--gishur.core.event.ConsumableEvent
Base class for all AWTEvents
that may be consumed.
This may be used by event processing to prevent dispatching of
consumed events. ConsumableEvents are Cloneable
because
they may be cloned to initiate various consumption paths while
event processing.
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 |
Constructor Summary | |
ConsumableEvent(java.awt.Event event)
Constructs an ConsumableEvent object from the parameters of a 1.0-style event. |
|
ConsumableEvent(java.lang.Object source,
int id)
Constructs an ConsumableEvent object with the specified source object and type. |
Method Summary | |
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
void |
consume()
Consumes this event so that it will not be processed in the default manner by the source which originated it. |
boolean |
isConsumed()
Returns whether or not this event has been consumed. |
Methods inherited from class gishur.core.event.GishurEvent |
isMaskedBy |
Methods inherited from class java.awt.AWTEvent |
finalize, getID, paramString, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConsumableEvent(java.awt.Event event)
event
- the old-style eventpublic ConsumableEvent(java.lang.Object source, int id)
source
- the object where the event originatedMethod Detail |
public void consume()
consume
in class java.awt.AWTEvent
public boolean isConsumed()
isConsumed
in class java.awt.AWTEvent
consume()
public java.lang.Object clone()
clone
in interface Cloneable
clone
in class java.lang.Object
OutOfMemoryError
- if there is not enough memory.Cloneable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |