Class PContextChangedEvent

java.lang.Object
java.util.EventObject
com.portal.bas.PContextChangedEvent
All Implemented Interfaces:
Serializable

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.
Version:
%version: 6 % %date_modified: Wed Apr 11 10:58:32 2001 %
Author:
larrylf
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the data associated with the reason.
    int
    Gets the reason for the context change event.

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • PANEL_TO_TOP

      public static final int PANEL_TO_TOP
      Event reason code for a change in panel position to the top.
      See Also:
    • PANEL_WAS_ON_TOP

      public static final int PANEL_WAS_ON_TOP
      Event reason code for a change in panel position from the top.
      See Also:
    • OK_TO_EXIT

      public static final int OK_TO_EXIT
      Event reason code for an exit.
      See Also:
    • APPLET_START

      public static final int APPLET_START
      Event reason code for an applet start.
      See Also:
    • APPLET_STOP

      public static final int APPLET_STOP
      Event reason code for an applet stop.
      See Also:
    • PANEL_SIZE_CHANGED

      public static final int PANEL_SIZE_CHANGED
      Event reason code for a change in panel size.
      See Also:
  • Constructor Details

    • PContextChangedEvent

      public PContextChangedEvent(Object src, int reason)
      Creates an instance of PContextChangedEvent, given a reason for the change in context..
      Parameters:
      src - the object sending the event
      reason - what changed in the context
    • PContextChangedEvent

      public 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.
      Parameters:
      src - the object sending the event
      reason - what changed in the context
      data - 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

      public Object getData()
      Gets the data associated with the reason.
      Returns:
      The data, if any, associated with the reason.