IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.rcp.xui.action
Class OperationAction

java.lang.Object
  extended by com.ibm.btt.rcp.xui.action.Action
      extended by com.ibm.btt.rcp.xui.action.OperationAction
All Implemented Interfaces:
OperationRepliedListener, IAction, java.util.EventListener

public class OperationAction
extends Action
implements OperationRepliedListener

This action may add to Button to call a client operation and submit the transaction. The transaction name can be injected.

For example:

 <list Injection="actions"> 
        <com.ibm.btt.rcp.xui.action.OperationAction operationName="transferClientOP"/>
 </list>
 


Constructor Summary
OperationAction()
           
 
Method Summary
 java.lang.String getOperationName()
          Get the operation name to launch.
 void handleOperationRepliedEvent(OperationRepliedEvent event)
          This method must be implemented by the operations that want to receive the OperationRepliedEvent events.
 void setOperationName(java.lang.String operName)
          Set the operation name to launch.
 boolean widgetSelected(IXUIWidget source)
          Invoke when selection occurs in the control.
 
Methods inherited from class com.ibm.btt.rcp.xui.action.Action
focusGained, focusLost, keyPressed, keyReleased, modifyText, mouseDoubleClick, mouseDown, mouseUp, verifyText, widgetDisposed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationAction

public OperationAction()
Method Detail

getOperationName

public java.lang.String getOperationName()
Get the operation name to launch.

Returns:
operation name

setOperationName

public void setOperationName(java.lang.String operName)
Set the operation name to launch.

Parameters:
operName - operation name

widgetSelected

public boolean widgetSelected(IXUIWidget source)
Description copied from interface: IAction
Invoke when selection occurs in the control.

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

Specified by:
widgetSelected in interface IAction
Overrides:
widgetSelected in class Action
Parameters:
source - source widget which invoke this action
Returns:
boolean value which depending on the event, a flag indicating whether the operation should be allowed. Setting this field to false will cancel the operation.

handleOperationRepliedEvent

public void handleOperationRepliedEvent(OperationRepliedEvent event)
Description copied from interface: OperationRepliedListener
This method must be implemented by the operations that want to receive the OperationRepliedEvent events.

Specified by:
handleOperationRepliedEvent in interface OperationRepliedListener
Parameters:
event - com.ibm.btt.base.OperationRepliedEvent

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010