public class PIASelectionEvent extends AWTEvent
PIASelectionEvent
is the event as generated by Portal components.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
source
Constructor and Description |
---|
PIASelectionEvent(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.
|
Modifier and Type | Method and Description |
---|---|
PModelHandle[] |
getSelection()
Gets all selected items, assuming multiple selections.
|
PModelHandle |
getSingleSelection()
Gets the selection, assuming a single selection.
|
boolean |
isSingleSelection()
Tests to determine if only one item is selected.
|
consume, getID, isConsumed, paramString, setSource, toString
getSource
public PIASelectionEvent(Object src, PModelHandle[] vals)
src
- the component that is sending the eventvals
- an array of modelspublic PIASelectionEvent(Object src, PModelHandle val)
src
- the component that is sending the eventval
- a modelpublic boolean isSingleSelection()
public PModelHandle getSingleSelection()
public PModelHandle[] getSelection()
Copyright © 2003, 2023, Oracle and/or its affiliates.