javax.rad.ui.event
Class UITabsetEvent

java.lang.Object
  extended by javax.rad.ui.event.UIEvent
      extended by javax.rad.ui.event.UITabsetEvent

public class UITabsetEvent
extends UIEvent

Platform and technology independent tabset event definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .


Field Summary
static int TABSET_ACTIVATED
          This event id indicates that a activated event occured.
static int TABSET_CLOSED
          This event id indicates that a close event occured.
static int TABSET_DEACTIVATED
          This event id indicates that a deactivated event occured.
static int TABSET_FIRST
          The first number in the range of ids used for tabset events.
static int TABSET_LAST
          The last number in the range of ids used for tabset events.
static int TABSET_MOVED
          This event id indicates that a move event occured.
 
Fields inherited from class javax.rad.ui.event.UIEvent
ALT_GRAPH_MASK, ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
 
Constructor Summary
UITabsetEvent(IComponent pSource, int pId, long pWhen, int pModifiers, int pOldIndex, int pNewIndex)
          Creates a new instance of UIActionEvent.
 
Method Summary
protected  void checkId(int pId)
          Checks if the current Instance of UIEvent allows the given id.
 int getNewIndex()
          Gets the current index of the tab.
 int getOldIndex()
          Gets the index of the tab before the event occured.
 
Methods inherited from class javax.rad.ui.event.UIEvent
getId, getModifiers, getSource, getWhen, isModifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABSET_FIRST

public static final int TABSET_FIRST
The first number in the range of ids used for tabset events.

See Also:
Constant Field Values

TABSET_CLOSED

public static final int TABSET_CLOSED
This event id indicates that a close event occured.

See Also:
Constant Field Values

TABSET_MOVED

public static final int TABSET_MOVED
This event id indicates that a move event occured.

See Also:
Constant Field Values

TABSET_ACTIVATED

public static final int TABSET_ACTIVATED
This event id indicates that a activated event occured.

See Also:
Constant Field Values

TABSET_DEACTIVATED

public static final int TABSET_DEACTIVATED
This event id indicates that a deactivated event occured.

See Also:
Constant Field Values

TABSET_LAST

public static final int TABSET_LAST
The last number in the range of ids used for tabset events.

See Also:
Constant Field Values
Constructor Detail

UITabsetEvent

public UITabsetEvent(IComponent pSource,
                     int pId,
                     long pWhen,
                     int pModifiers,
                     int pOldIndex,
                     int pNewIndex)
Creates a new instance of UIActionEvent.

Parameters:
pSource - the Source of this UIActionEvent.
pId - the Id of this UIActionEvent.
pWhen - the time the event occurred
pModifiers - represents the modifier keys and mouse buttons down while the event occurred
pOldIndex - the old tab index on which the event occured
pNewIndex - the new tab index on which the event occured
Method Detail

checkId

protected void checkId(int pId)
Checks if the current Instance of UIEvent allows the given id.

Overrides:
checkId in class UIEvent
Parameters:
pId - the Id of this UIEvent.

getOldIndex

public int getOldIndex()
Gets the index of the tab before the event occured.

Returns:
the old tab index

getNewIndex

public int getNewIndex()
Gets the current index of the tab.

Returns:
the tab index


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.