|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.rcp.xui.action.Action
public abstract class Action
Abstract class for Action, all implementations of IAction should extends from this abstract class
Constructor Summary | |
---|---|
Action()
|
Method Summary | |
---|---|
void |
focusGained(IXUIWidget source)
Invoke when a control loses focus. |
void |
focusLost(IXUIWidget source)
Invoke when a control gets focus. |
boolean |
keyPressed(IXUIWidget source,
char character,
int keyCode,
int stateMask)
Invoke when a key is pressed on the system keyboard. |
boolean |
keyReleased(IXUIWidget source,
char character,
int keyCode,
int stateMask)
Invoke when a key is pressed on the system keyboard. |
void |
modifyText(IXUIWidget source)
Invoke when the text is modified. |
void |
mouseDoubleClick(IXUIWidget source,
int type,
int stateMask)
Invoke when a mouse button is pressed twice within the (operating system specified) double click period. |
void |
mouseDown(IXUIWidget source,
int type,
int stateMask)
Invoke when a mouse button is pressed. |
void |
mouseUp(IXUIWidget source,
int type,
int stateMask)
Invoke when a mouse button is released. |
boolean |
verifyText(IXUIWidget source,
int start,
int end,
java.lang.String text)
Invoke when the text is about to be modified. |
void |
widgetDisposed(IXUIWidget source)
Invoke when the widget is disposed. |
boolean |
widgetSelected(IXUIWidget source)
Invoke when selection occurs in the control. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Action()
Method Detail |
---|
public boolean keyPressed(IXUIWidget source, char character, int keyCode, int stateMask)
IAction
keyPressed
in interface IAction
source
- source widget which invoke this actioncharacter
- the character represented by the key that was typed. This is
the final character that results after all modifiers have been
applied. For example, when the user types Ctrl+A, the
character value is 0x01. It is important that applications do
not attempt to modify the character value based on a stateMask
(such as SWT.CTRL) or the resulting character will not be
correct.keyCode
- the key code of the key that was typed, as defined by the key
code constants in class SWT
. When the character
field of the event is ambiguous, this field contains the
unicode value of the original character. For example, typing
Ctrl+M or Return both result in the character '\r' but the
keyCode field will also contain '\r' when Return was typed.stateMask
- the state of the keyboard modifier keys at the time the event
was generated, as defined by the key code constants in class
SWT
.
public boolean keyReleased(IXUIWidget source, char character, int keyCode, int stateMask)
IAction
keyReleased
in interface IAction
source
- source widget which invoke this actioncharacter
- the character represented by the key that was typed. This is
the final character that results after all modifiers have been
applied. For example, when the user types Ctrl+A, the
character value is 0x01. It is important that applications do
not attempt to modify the character value based on a stateMask
(such as SWT.CTRL) or the resulting character will not be
correct.keyCode
- the key code of the key that was typed, as defined by the key
code constants in class SWT
. When the character
field of the event is ambiguous, this field contains the
unicode value of the original character. For example, typing
Ctrl+M or Return both result in the character '\r' but the
keyCode field will also contain '\r' when Return was typed.stateMask
- the state of the keyboard modifier keys at the time the event
was generated, as defined by the key code constants in class
SWT
.
public boolean widgetSelected(IXUIWidget source)
IAction
For example, selection occurs in a List when the user selects an item or items with the keyboard or mouse. On some platforms, the event occurs when a mouse button or key is pressed. On others, it happens when the mouse or key is released. The exact key or mouse gesture that causes this event is platform specific.
Current support widgets: Button, Table, ComboBox, RadioButton, CheckBox, List
widgetSelected
in interface IAction
source
- source widget which invoke this action
public void focusLost(IXUIWidget source)
IAction
focusLost
in interface IAction
source
- source widget which invoke this actionpublic void focusGained(IXUIWidget source)
IAction
focusGained
in interface IAction
source
- source widget which invoke this actionpublic void mouseDoubleClick(IXUIWidget source, int type, int stateMask)
IAction
mouseDoubleClick
in interface IAction
source
- source widget which invoke this actiontype
- the button that was pressed or released; 1 for the first
button, 2 for the second button, and 3 for the third button,
etc.stateMask
- the state of the keyboard modifier keys at the time the event
was generatedpublic void mouseDown(IXUIWidget source, int type, int stateMask)
IAction
mouseDown
in interface IAction
source
- source widget which invoke this actiontype
- the button that was pressed or released; 1 for the first
button, 2 for the second button, and 3 for the third button,
etc.stateMask
- the state of the keyboard modifier keys at the time the event
was generatedpublic void mouseUp(IXUIWidget source, int type, int stateMask)
IAction
mouseUp
in interface IAction
source
- source widget which invoke this actiontype
- the button that was pressed or released; 1 for the first
button, 2 for the second button, and 3 for the third button,
etc.stateMask
- the state of the keyboard modifier keys at the time the event
was generatedpublic void widgetDisposed(IXUIWidget source)
IAction
widgetDisposed
in interface IAction
source
- source widget which invoke this actionpublic void modifyText(IXUIWidget source)
IAction
Current support widgets: Text widgets and ComboBox
modifyText
in interface IAction
source
- source widget which invoke this actionpublic boolean verifyText(IXUIWidget source, int start, int end, java.lang.String text)
IAction
A verify action occurs after the user has done something to modify the text (typically typed a key), but before the text is modified. The return value indicates whether or not to modify the text.
Current support widgets: Text widgets and ComboBox
verifyText
in interface IAction
start
- the start point of text being modified.end
- the end point of text being modified.text
- the new text that will be inserted.
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |