Business Components

oracle.jbo.uicli.binding
Class JUCtrlActionBinding

java.lang.Object
  |
  +--oracle.jbo.uicli.binding.JUControlBinding
        |
        +--oracle.jbo.uicli.binding.JUCtrlActionBinding
Direct Known Subclasses:
JUActionBinding

public abstract class JUCtrlActionBinding
extends JUControlBinding

Implements actions on BC4J RowIterator to which this control is bound. This class supports the following actions:

If a button is bound to this binding class, then, on button press, the action event on the button binding should call doIt() method on this object to perform the desired action.


Field Summary
TypeField
static int ACTION_COMMIT_TRANSACTION
           
static int ACTION_CREATE_INSERT_ROW
           
static int ACTION_EXECUTE
           
static int ACTION_FIRST
           
static int ACTION_LAST
           
static int ACTION_NEXT
           
static int ACTION_PREVIOUS
           
static int ACTION_REMOVE_CURRENT_ROW
           
static int ACTION_RESET
           
static int ACTION_ROLLBACK_TRANSACTION
           
 
Constructor Summary
JUCtrlActionBinding(java.lang.Object control, JUIteratorBinding iterBinding, int action)
          Creates an ActionBinding instance that works with the given control and on control's ActionEvent, call the doIt() method.
 
Method Summary
TypeMethod
static java.lang.String actionIdToName(int id)
          *** For internal framework use only ***
static int actionNameToId(java.lang.String actionName)
          *** For internal framework use only ***
 void doIt()
          Invokes the action that this binding is selected to perform.
 
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding
addControlToPanel, executeQuery, executeQueryIfNeeded, getAllRowsInRange, getApplicationModule, getControl, getCurrentRow, getDef, getFormBinding, getIteratorBinding, getLayoutObject, getName, getRowAtRangeIndex, getRowIterator, getTransaction, getViewObject, isControlQueriable, reportException, setFormBinding, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_EXECUTE

public static final int ACTION_EXECUTE

ACTION_NEXT

public static final int ACTION_NEXT

ACTION_PREVIOUS

public static final int ACTION_PREVIOUS

ACTION_FIRST

public static final int ACTION_FIRST

ACTION_LAST

public static final int ACTION_LAST

ACTION_RESET

public static final int ACTION_RESET

ACTION_REMOVE_CURRENT_ROW

public static final int ACTION_REMOVE_CURRENT_ROW

ACTION_CREATE_INSERT_ROW

public static final int ACTION_CREATE_INSERT_ROW

ACTION_COMMIT_TRANSACTION

public static final int ACTION_COMMIT_TRANSACTION

ACTION_ROLLBACK_TRANSACTION

public static final int ACTION_ROLLBACK_TRANSACTION
Constructor Detail

JUCtrlActionBinding

public JUCtrlActionBinding(java.lang.Object control,
                           JUIteratorBinding iterBinding,
                           int action)
Creates an ActionBinding instance that works with the given control and on control's ActionEvent, call the doIt() method.
Parameters:
control - The control that this binding works with.
iterBinding - JUIteratorBinding instance that this binding works with.
action - Indicates the selected action from the list of actions this class implements.
Method Detail

actionNameToId

public static int actionNameToId(java.lang.String actionName)
*** For internal framework use only ***

actionIdToName

public static java.lang.String actionIdToName(int id)
*** For internal framework use only ***

doIt

public void doIt()
Invokes the action that this binding is selected to perform. This method gets the RowIterator from the associated Iterator binding and then calls an equivalent method on the RowIterator. BC4J runtime then sends appropriate events to various binding objects based on the action to update their display with the latest currency, data, etc.

Here's a list of actions and corresponding method calls on the BC4J side.


Business Components