Packageorg.aswing.event
Classpublic class TabCloseEvent
InheritanceTabCloseEvent Inheritance AWEvent Inheritance flash.events.Event

The event for JClosableTabbedPane tab close button clicked.



Public Methods
 MethodDefined by
  
TabCloseEvent(index:int)
TabCloseEvent
  
clone():Event
TabCloseEvent
  
getIndex():int
Return the index of tab that close button clicked.
TabCloseEvent
Public Constants
 ConstantDefined by
 InheritedACT : String = "act"
[static] The AWEvent.ACT constant defines the value of the type property of the event object for a act event.
AWEvent
 InheritedFOCUS_GAINED : String = "focusGained"
[static] The AWEvent.FOCUS_GAINED constant defines the value of the type property of the event object for a focusGained event.
AWEvent
 InheritedFOCUS_LOST : String = "focusLost"
[static] The AWEvent.FOCUS_LOST constant defines the value of the type property of the event object for a focusLost event.
AWEvent
 InheritedHIDDEN : String = "hidden"
[static] The AWEvent.HIDDEN constant defines the value of the type property of the event object for a hidden event.
AWEvent
 InheritedPAINT : String = "paint"
[static] The AWEvent.PAINT constant defines the value of the type property of the event object for a paint event.
AWEvent
 InheritedSHOWN : String = "shown"
[static] The AWEvent.SHOWN constant defines the value of the type property of the event object for a shown event.
AWEvent
  TAB_CLOSING : String = "tabClosing"
[static] The TabCloseEvent.TAB_CLOSING constant defines the value of the type property of the event object for a tabClosing event.
TabCloseEvent
Constructor detail
TabCloseEvent()constructor
public function TabCloseEvent(index:int)Parameters
index:int
Method detail
clone()method
public override function clone():Event

Returns
Event
getIndex()method 
public function getIndex():int

Return the index of tab that close button clicked.

Returns
int
Constant detail
TAB_CLOSINGconstant
public static const TAB_CLOSING:String = "tabClosing"

The TabCloseEvent.TAB_CLOSING constant defines the value of the type property of the event object for a tabClosing event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
getIndex()the tab index
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.