class StimuliSelector.GralUserActionButton extends GralUserAction
StimuliSelector.execBtnAction(String), assigned to some Buttons.
The name in the constructor determines the name of the called subroutine in the JZtxtcmd script.name, version| Constructor and Description |
|---|
GralUserActionButton(java.lang.String name)
Creates
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exec(int actionCode,
GralWidget_ifc widgd,
java.lang.Object... params)
This method should be override by the users class.
|
toString, userActionGui, userActionGuiGralUserActionButton(java.lang.String name)
name - it is the name of the subroutine in the JZtxtcmd script which will be called.public boolean exec(int actionCode,
GralWidget_ifc widgd,
java.lang.Object... params)
GralUserActionGralUserAction is associated to a specific widget.
GralUserAction super class, it tries to call
the deprecated GralUserAction.userActionGui(int, GralWidget, Object...) because that method may be overridden.exec in class GralUserActionactionCode - See KeyCode. Any special action is designated with 0.widgd - The Gral which calls this method in any of its implementation methods.
This parameter designates the source of the call with some specific properties in the widget.
For example ((GralWidget)widgd).getCmd() can be invoked.params - Some optional values, depending on special user designation. In most cases no parameter.
The user may be test the type of parameter for complex usage.