Class PIASelectionEvent

java.lang.Object
java.util.EventObject
java.awt.AWTEvent
com.portal.bas.PIASelectionEvent
All Implemented Interfaces:
Serializable

public class PIASelectionEvent extends AWTEvent
PIASelectionEvent is the event as generated by Portal components.
Version:
11
Author:
Larry Lynch-Freshner
See Also:
  • Constructor Details

    • PIASelectionEvent

      public PIASelectionEvent(Object src, PModelHandle[] vals)
      Creates an instance of a multiple selection event.
      Parameters:
      src - the component that is sending the event
      vals - an array of models
    • PIASelectionEvent

      public PIASelectionEvent(Object src, PModelHandle val)
      Creates an instance of a single selection event.
      Parameters:
      src - the component that is sending the event
      val - a model
  • Method Details

    • isSingleSelection

      public boolean isSingleSelection()
      Tests to determine if only one item is selected.
      Returns:
      True if only one item is selected; false otherwise.
    • getSingleSelection

      public PModelHandle getSingleSelection()
      Gets the selection, assuming a single selection.
      Returns:
      The single model selection or null if there is no selection.
    • getSelection

      public PModelHandle[] getSelection()
      Gets all selected items, assuming multiple selections.
      Returns:
      An array of selected items.