|
TrueZIP Swing 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
de.schlichtherle.truezip.swing.PanelEvent
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class PanelEvent
Fired when the ancestor window of an 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.
| Field Summary | |
|---|---|
static int |
ANCESTOR_WINDOW_HIDDEN
The id for Ancestor Window Hidden Event. |
static int |
ANCESTOR_WINDOW_SHOWN
The id for Ancestor Window Shown Event. |
private static long |
serialVersionUID
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
PanelEvent(EnhancedPanel source,
int id)
|
|
| Method Summary | |
|---|---|
EnhancedPanel |
getSource()
The implementation in PanelEvent always returns non-null. |
String |
paramString()
|
void |
setSource(Object source)
|
| Methods inherited from class java.awt.AWTEvent |
|---|
consume, getID, isConsumed, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
public static final int ANCESTOR_WINDOW_SHOWN
public static final int ANCESTOR_WINDOW_HIDDEN
| Constructor Detail |
|---|
public PanelEvent(EnhancedPanel source,
int id)
| Method Detail |
|---|
public EnhancedPanel getSource()
The implementation in PanelEvent always returns non-null.
getSource in class EventObjectpublic void setSource(Object source)
setSource in class AWTEventClassCastException - If source is not an instance of
EnhancedPanel.public String paramString()
paramString in class AWTEvent
|
TrueZIP Swing 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||