All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.datesbeans.FunctionBean

java.lang.Object
    |
    +----com.ibm.datesbeans.FunctionBean

public abstract class FunctionBean
extends java.lang.Object
implements java.io.Serializable
This class is a base class for all non visual beans. This abstract class provides implementation for firing events like 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.

Since:
DatesBeans 1.0

Constructor Index

 o FunctionBean()
Default constructor.

Method Index

 o addActionErrorListener(ActionErrorListener)
Adds a new ActionErrorListener.
 o addFetchArgumentsListener(FetchArgumentsListener)
Adds a new FetchArgumentsListener.
 o addPropertyChangeListener(PropertyChangeListener)
Adds a new PropertyChangeListener.
 o addTriggerNextActionListener(TriggerNextActionListener)
Adds a new TriggerNextActionListener.
 o getAutoAction()
Return value of autoAction property.
 o removeActionErrorListener(ActionErrorListener)
Removes a ActionErrorListener.
 o removeFetchArgumentsListener(FetchArgumentsListener)
Removes a FetchArgumentsListener.
 o removePropertyChangeListener(PropertyChangeListener)
Removes a PropertyChangeListener.
 o removeTriggerNextActionListener(TriggerNextActionListener)
Removes a TriggerNextActionListener.
 o setAutoAction(boolean)
Sets the autoAction flag.
 o triggerAction()
Initiates the computation of the bean.

Constructor Detail

 o FunctionBean
public FunctionBean()
          Default constructor.

Method Detail

 o addActionErrorListener
public void addActionErrorListener(ActionErrorListener newListener)
          Adds a new ActionErrorListener.
Parameters:
newListener - The ActionErrorListener to be added
 o addFetchArgumentsListener
public void addFetchArgumentsListener(FetchArgumentsListener newListener)
          Adds a new FetchArgumentsListener.
Parameters:
newListener - The FetchArgumentsListener to be added
 o addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener newListener)
          Adds a new PropertyChangeListener.
Parameters:
newListener - The PropertyChangeListener to be added
 o addTriggerNextActionListener
public void addTriggerNextActionListener(TriggerNextActionListener newListener)
          Adds a new TriggerNextActionListener.
Parameters:
newListener - The TriggerNextActionListener to be added
 o getAutoAction
public boolean getAutoAction()
          Return value of autoAction property.
Returns:
value of autoAction property
 o removeActionErrorListener
public void removeActionErrorListener(ActionErrorListener listener)
          Removes a ActionErrorListener.
Parameters:
listener - The ActionErrorListener to be removed
 o removeFetchArgumentsListener
public void removeFetchArgumentsListener(FetchArgumentsListener listener)
          Removes a FetchArgumentsListener.
Parameters:
listener - The FetchArgumentsListener to be removed
 o removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a PropertyChangeListener.
Parameters:
listener - The PropertyChangeListener to be removed
 o removeTriggerNextActionListener
public void removeTriggerNextActionListener(TriggerNextActionListener listener)
          Removes a TriggerNextActionListener.
Parameters:
listener - The TriggerNextActionListener to be removed
 o setAutoAction
public void setAutoAction(boolean value)
          Sets the 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.
Parameters:
value - new value of autoAction property
 o triggerAction
public void triggerAction()
          Initiates the computation of the bean. This method causes 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