All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.ibm.datesbeans.FunctionBean
FetchArgumentsEvent
,
TriggerNextActionEvent
, ActionErrorEvent
which are to be
fired by these beans.
This class provides methods for triggering the computation of the bean (triggerAction
).
It should be subclassed to provide the concrete implementation.
autoAction
property.
autoAction
flag.
public FunctionBean()
public void addActionErrorListener(ActionErrorListener newListener)
newListener
- The ActionErrorListener to be added
public void addFetchArgumentsListener(FetchArgumentsListener newListener)
newListener
- The FetchArgumentsListener to be added
public void addPropertyChangeListener(java.beans.PropertyChangeListener newListener)
newListener
- The PropertyChangeListener to be added
public void addTriggerNextActionListener(TriggerNextActionListener newListener)
newListener
- The TriggerNextActionListener to be added
public boolean getAutoAction()
autoAction
property.autoAction
propertypublic void removeActionErrorListener(ActionErrorListener listener)
listener
- The ActionErrorListener to be removed
public void removeFetchArgumentsListener(FetchArgumentsListener listener)
listener
- The FetchArgumentsListener to be removed
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed
public void removeTriggerNextActionListener(TriggerNextActionListener listener)
listener
- The TriggerNextActionListener to be removed
public void setAutoAction(boolean value)
autoAction
flag. This is used to check whether to call
triggerAction
method whenever input or control properties of a
bean are modified. If the flag is true triggerAction method is called.value
- new value of autoAction
property
public void triggerAction()
FetchArgumentsEvent
to be fired. This event is used for setting the input or control arguments
of its subclass. After firing this event, it checks the precondition. If the
precondition is satisfied, it calls the computeFunction else ActionErrorEvent
is fired. If the computeFunction
is successful, TriggerNextActionEvent
is fired else ActionErrorEvent
is fired.All Packages Class Hierarchy This Package Previous Next Index