public class PanelEvent extends AWTEvent
EnhancedPanel
is shown or
hidden.
Note that since TrueZIP 6.1, this class has been refactored to subclass
AWTEvent
(which subclasses EventObject
) instead
of EventObject
directly.
This has been done in order to allow coalescing multiple events for the
same cause by posting them to the AWT's Event Queue, from which the
coalesced event would then be dispatched by AWT's Event Dispatching Thread.
However, since TrueZIP 6.4, these events are fired synchronously again, whereby it is ensured that only a single event is fired for each cause. The super class is kept for backwards compatibility only.
Modifier and Type | Field and Description |
---|---|
static int |
ANCESTOR_WINDOW_HIDDEN
The id for Ancestor Window Hidden Event.
|
static int |
ANCESTOR_WINDOW_SHOWN
The id for Ancestor Window Shown Event.
|
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
source
Constructor and Description |
---|
PanelEvent(EnhancedPanel source,
int id) |
Modifier and Type | Method and Description |
---|---|
EnhancedPanel |
getSource() |
String |
paramString() |
void |
setSource(Object source) |
consume, getID, isConsumed, toString
public static final int ANCESTOR_WINDOW_HIDDEN
public static final int ANCESTOR_WINDOW_SHOWN
public PanelEvent(EnhancedPanel source, int id)
public EnhancedPanel getSource()
The implementation in PanelEvent
always returns non-null
.
getSource
in class EventObject
public String paramString()
paramString
in class AWTEvent
public void setSource(Object source)
setSource
in class AWTEvent
ClassCastException
- If source
is not an instance of
EnhancedPanel
.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.