com.sibvisions.rad.ui.swing.ext.event
Class TabEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.sibvisions.rad.ui.swing.ext.event.TabEvent
All Implemented Interfaces:
Serializable

public class TabEvent
extends EventObject

An event which indicates that a tab action occurred in a tabbed pane.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TabEvent(Object pSource, int pOldIndex, int pNewIndex, long pWhen, int pModifiers)
          Creates a new instance of TabEvent.
 
Method Summary
 int getModifiers()
          Returns the modifier mask for this event.
 int getNewTabIndex()
          Gets the affected new tab index.
 int getOldTabIndex()
          Gets the affected old tab index.
 long getWhen()
          Returns the timestamp of when this event occurred.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TabEvent

public TabEvent(Object pSource,
                int pOldIndex,
                int pNewIndex,
                long pWhen,
                int pModifiers)
Creates a new instance of TabEvent.

Parameters:
pSource - the Source of this TabEvent
pOldIndex - the old index of the triggered tab
pNewIndex - the new index of the triggered tab
pWhen - the time the event occurred
pModifiers - represents the modifier keys and mouse buttons down while the event occurred
Method Detail

getOldTabIndex

public int getOldTabIndex()
Gets the affected old tab index.

Returns:
the tab index

getNewTabIndex

public int getNewTabIndex()
Gets the affected new tab index.

Returns:
the tab index

getWhen

public long getWhen()
Returns the timestamp of when this event occurred.

Returns:
the timestamp in millis

getModifiers

public int getModifiers()
Returns the modifier mask for this event.

Returns:
the modifier mask


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.