Package com.portal.bas
Class PContextChangedEvent
java.lang.Object
java.util.EventObject
com.portal.bas.PContextChangedEvent
- All Implemented Interfaces:
Serializable
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.- Version:
- %version: 6 % %date_modified: Wed Apr 11 10:58:32 2001 %
- Author:
- larrylf
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Event reason code for an applet start.static final int
Event reason code for an applet stop.static final int
Event reason code for an exit.static final int
Event reason code for a change in panel size.static final int
Event reason code for a change in panel position to the top.static final int
Event reason code for a change in panel position from the top.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionPContextChangedEvent
(Object src, int reason) Creates an instance ofPContextChangedEvent
, given a reason for the change in context..PContextChangedEvent
(Object src, int reason, Object data) Creates an instance ofPContextChangedEvent
, given a reason for the change in context and optional data associated with that reason. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
PANEL_TO_TOP
public static final int PANEL_TO_TOPEvent reason code for a change in panel position to the top.- See Also:
-
PANEL_WAS_ON_TOP
public static final int PANEL_WAS_ON_TOPEvent reason code for a change in panel position from the top.- See Also:
-
OK_TO_EXIT
public static final int OK_TO_EXITEvent reason code for an exit.- See Also:
-
APPLET_START
public static final int APPLET_STARTEvent reason code for an applet start.- See Also:
-
APPLET_STOP
public static final int APPLET_STOPEvent reason code for an applet stop.- See Also:
-
PANEL_SIZE_CHANGED
public static final int PANEL_SIZE_CHANGEDEvent reason code for a change in panel size.- See Also:
-
-
Constructor Details
-
PContextChangedEvent
Creates an instance ofPContextChangedEvent
, given a reason for the change in context..- Parameters:
src
- the object sending the eventreason
- what changed in the context
-
PContextChangedEvent
Creates an instance ofPContextChangedEvent
, given a reason for the change in context and optional data associated with that reason.- Parameters:
src
- the object sending the eventreason
- what changed in the contextdata
- optional data, if any, associated with the reason
-
-
Method Details
-
getReason
public int getReason()Gets the reason for the context change event.- Returns:
- The event's reason code.
-
getData
Gets the data associated with the reason.- Returns:
- The data, if any, associated with the reason.
-