public final class TabActionEvent extends ActionEvent
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
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 |
---|
TabActionEvent(Object source,
String command,
int tabIndex)
Creates a new instance of TabActionEvent
|
TabActionEvent(Object source,
String command,
int tabIndex,
MouseEvent mouseEvent) |
Modifier and Type | Method and Description |
---|---|
void |
consume()
Consume this event - any changes that should be performed as a result
will be done by external code by manipulating the models or other means
|
String |
getGroupName() |
MouseEvent |
getMouseEvent()
If the action event was triggered by a mouse event, get the mouse event
in question
|
int |
getTabIndex() |
boolean |
isConsumed()
Determine if the event has been consumed
|
void |
setGroupName(String groupName)
Set the name of window group this command applies to.
|
void |
setSource(Object source) |
String |
toString() |
getActionCommand, getModifiers, getWhen, paramString
getSource
public TabActionEvent(Object source, String command, int tabIndex)
public TabActionEvent(Object source, String command, int tabIndex, MouseEvent mouseEvent)
public void consume()
public boolean isConsumed()
isConsumed
in class AWTEvent
public MouseEvent getMouseEvent()
public int getTabIndex()
public String getGroupName()
public void setGroupName(String groupName)
groupName
-