public class G9VetoableSelectionEvent extends G9SelectedEvent
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_MASKsource| Constructor and Description |
|---|
G9VetoableSelectionEvent(Object source,
int oldSelection,
int newSelection)
Constructs a new vetoable selection event
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isVetoed()
Check if the selection event is vetoed.
|
void |
veto(boolean veto)
Vetoes the selection about to occure.
|
getNewSelection, getOldSelectionconsume, getID, isConsumed, paramString, setSource, toStringgetSourcepublic G9VetoableSelectionEvent(Object source, int oldSelection, int newSelection)
source - the source of the eventoldSelection - the current selected rownewSelection - the row that will become the selected row.public boolean isVetoed()
true if the selection event should be vetoed.public void veto(boolean veto)
veto - a boolean flag where true indicates that the
selection is vetoed.Copyright © 2006–2018 Esito AS. All rights reserved.