|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ru.tunegov.mathematic.FunctionBean
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.
| Constructor Summary | |
FunctionBean()
Default constructor. |
|
| Method Summary | |
void |
addActionErrorListener(ActionErrorListener newListener)
Adds a new ActionErrorListener. |
void |
addFetchArgumentsListener(FetchArgumentsListener newListener)
Adds a new FetchArgumentsListener. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener newListener)
Adds a new PropertyChangeListener. |
void |
addTriggerNextActionListener(TriggerNextActionListener newListener)
Adds a new TriggerNextActionListener. |
boolean |
getAutoAction()
Returns the flag whether the bean function executes immediately. |
void |
removeActionErrorListener(ActionErrorListener newListener)
Removes a ActionErrorListener. |
void |
removeFetchArgumentsListener(FetchArgumentsListener newListener)
Removes a FetchArgumentsListener. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener newListener)
Removes a PropertyChangeListener. |
void |
removeTriggerNextActionListener(TriggerNextActionListener newListener)
Removes a TriggerNextActionListener. |
void |
setAutoAction(boolean value)
Sets the autoAction flag. |
void |
triggerAction()
Initiates the computation of the bean. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public FunctionBean()
| Method Detail |
public void addActionErrorListener(ActionErrorListener newListener)
newListener - The ActionErrorListener to be addedpublic void addFetchArgumentsListener(FetchArgumentsListener newListener)
newListener - The FetchArgumentsListener to be addedpublic void addPropertyChangeListener(java.beans.PropertyChangeListener newListener)
newListener - The PropertyChangeListener to be addedpublic void addTriggerNextActionListener(TriggerNextActionListener newListener)
newListener - The TriggerNextActionListener to be addedpublic boolean getAutoAction()
public void removeActionErrorListener(ActionErrorListener newListener)
newListener - The ActionErrorListener to be removedpublic void removeFetchArgumentsListener(FetchArgumentsListener newListener)
newListener - The FetchArgumentsListener to be removedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener newListener)
newListener - The PropertyChangeListener to be removedpublic void removeTriggerNextActionListener(TriggerNextActionListener newListener)
newListener - The TriggerNextActionListener to be removedpublic 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 propertypublic 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||