Class PSpreadSheetEvent

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

public class PSpreadSheetEvent extends EventObject
PSpreadSheetEvent is an event generated when the user performs some type of selection action in the PIASpreadSheet. This event is used to differentiate between simple selection changes and actual activation of a given cell or row.
Version:
%version: 4 % %date_modified: Tue Jun 26 15:56:51 2001 %
Author:
kapono
See Also:
  • Field Details

    • SELECTION_CHANGED

      public static final int SELECTION_CHANGED
      Indicates the selection was changed by the user (either by selecting a row with the mouse or using the up/down arrows).
      See Also:
    • EXPAND

      public static final int EXPAND
      Indicates the user wants more information on the given row. Typically this gesture is a double click or the Enter/Return key.
      See Also:
  • Constructor Details

    • PSpreadSheetEvent

      public PSpreadSheetEvent(Object src, int type, PModelHandle[] selection)
      Creates a new event that contains the given array of model handles.
      Parameters:
      src - the event object the user selected
      type - the type of event to create
      selection - the model handle(s) for the selected object
    • PSpreadSheetEvent

      public PSpreadSheetEvent(Object src, int type, Object selection)
      Creates a new event indicating a selection was made
      Parameters:
      src - the event object the user selected
      type - the type of event to create
      selection - generic data the caller wishes to send along with the event
  • Method Details

    • getType

      public int getType()
      Retrieves the event type.
      Returns:
      An integer that represents the event type.
    • getData

      public PModelHandle[] getData()
      Retrieves the event data. This will probably be deprecated in the future, to be replaced by the generic getObjectData().
      Returns:
      The model handle(s) associated with this event.
    • getObjectData

      public Object getObjectData()
      Retrieves the generic event data.
      Returns:
      The data associated with this event.