public class PContextChangedEvent extends EventObject
PContextChangedEvent is issued by the application anytime the
application context changes, or when application window changes occur.
Any control can register a listener with PAppContext to get these events,
if they are applicable.| Modifier and Type | Field and Description |
|---|---|
static int |
APPLET_START
Event reason code for an applet start.
|
static int |
APPLET_STOP
Event reason code for an applet stop.
|
static int |
OK_TO_EXIT
Event reason code for an exit.
|
static int |
PANEL_SIZE_CHANGED
Event reason code for a change in panel size.
|
static int |
PANEL_TO_TOP
Event reason code for a change in panel position to the top.
|
static int |
PANEL_WAS_ON_TOP
Event reason code for a change in panel position from the top.
|
source| Constructor and Description |
|---|
PContextChangedEvent(Object src,
int reason)
Creates an instance of
PContextChangedEvent, given
a reason for the change in context.. |
PContextChangedEvent(Object src,
int reason,
Object data)
Creates an instance of
PContextChangedEvent, given a reason
for the change in context and optional data associated with that reason. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getData()
Gets the data associated with the reason.
|
int |
getReason()
Gets the reason for the context change event.
|
getSource, toStringpublic static final int PANEL_TO_TOP
public static final int PANEL_WAS_ON_TOP
public static final int OK_TO_EXIT
public static final int APPLET_START
public static final int APPLET_STOP
public static final int PANEL_SIZE_CHANGED
public PContextChangedEvent(Object src, int reason)
PContextChangedEvent, given
a reason for the change in context..src - the object sending the eventreason - what changed in the contextpublic PContextChangedEvent(Object src, int reason, Object data)
PContextChangedEvent, given a reason
for the change in context and optional data associated with that reason.src - the object sending the eventreason - what changed in the contextdata - optional data, if any, associated with the reasonpublic int getReason()
public Object getData()
Copyright © 2003, 2023, Oracle and/or its affiliates.