Package com.portal.bas
Class PIASelectionEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
com.portal.bas.PIASelectionEvent
- All Implemented Interfaces:
Serializable
PIASelectionEvent
is the event as generated by Portal components.- Version:
- 11
- Author:
- Larry Lynch-Freshner
- See Also:
-
Field Summary
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionPIASelectionEvent
(Object src, PModelHandle val) Creates an instance of a single selection event.PIASelectionEvent
(Object src, PModelHandle[] vals) Creates an instance of a multiple selection event. -
Method Summary
Modifier and TypeMethodDescriptionGets all selected items, assuming multiple selections.Gets the selection, assuming a single selection.boolean
Tests to determine if only one item is selected.Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, paramString, setSource, toString
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
PIASelectionEvent
Creates an instance of a multiple selection event.- Parameters:
src
- the component that is sending the eventvals
- an array of models
-
PIASelectionEvent
Creates an instance of a single selection event.- Parameters:
src
- the component that is sending the eventval
- 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
Gets the selection, assuming a single selection.- Returns:
- The single model selection or null if there is no selection.
-
getSelection
Gets all selected items, assuming multiple selections.- Returns:
- An array of selected items.
-