站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

TabActionEvent (Tab Control) - NetBeans API Javadoc (Current Development Version)

org.netbeans.swing.tabcontrol 1.8

org.netbeans.swing.tabcontrol.event
Class TabActionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.awt.AWTEvent
          extended by java.awt.event.ActionEvent
              extended by org.netbeans.swing.tabcontrol.event.TabActionEvent
All Implemented Interfaces:
Serializable

public final class TabActionEvent
extends ActionEvent

An action event which may be consumed by a listener. These are fired by TabControl and TabbedContainer to determine if outside code wants to handle an event, such as clicking the close button (which might be vetoed), or if the control should handle it itself.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.event.ActionEvent
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
 
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
TabActionEvent(Object source, String command, int tabIndex)
          Creates a new instance of TabActionEvent
TabActionEvent(Object source, String command, int tabIndex, MouseEvent mouseEvent)
           
 
Method Summary
 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
 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 setSource(Object source)
           
 String toString()
           
 
Methods inherited from class java.awt.event.ActionEvent
getActionCommand, getModifiers, getWhen, paramString
 
Methods inherited from class java.awt.AWTEvent
getID
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TabActionEvent

public TabActionEvent(Object source,
                      String command,
                      int tabIndex)
Creates a new instance of TabActionEvent


TabActionEvent

public TabActionEvent(Object source,
                      String command,
                      int tabIndex,
                      MouseEvent mouseEvent)
Method Detail

consume

public 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

Overrides:
consume in class AWTEvent

isConsumed

public boolean isConsumed()
Determine if the event has been consumed

Overrides:
isConsumed in class AWTEvent

getMouseEvent

public MouseEvent getMouseEvent()
If the action event was triggered by a mouse event, get the mouse event in question

Returns:
The mouse event, or null

getTabIndex

public int getTabIndex()

setSource

public void setSource(Object source)
Overrides:
setSource in class AWTEvent

toString

public String toString()
Overrides:
toString in class AWTEvent

org.netbeans.swing.tabcontrol 1.8

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.