Ontimize 5.2072EN

com.ontimize.gui
Class BasicInteractionManager.InsertListener

java.lang.Object
  extended bycom.ontimize.gui.BasicInteractionManager.InsertListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
BasicInteractionManager

public class BasicInteractionManager.InsertListener
extends java.lang.Object
implements java.awt.event.ActionListener

Default insertion listener. Is associated to the insert button. Updates the tree or the table related to the managed Form if them exist. After an insertion, it can be configured whether the form has to remain in the register that has just been inserted or if it has to set the insert mode state, in order to be prepared to insert a new register.

Once the insertion has been done, if the form has a related the this will be updated, and if the form is raised from a table, the table will be updated.


Field Summary
protected  EntityResult lastResult
           
 
Constructor Summary
BasicInteractionManager.InsertListener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Performs the Insert operation.
 EntityResult getLastResult()
          Returns the last insert operation result.
protected  void postCorrectInsert(EntityResult result, Entity entity)
          Method called after performing an insertion successfully.
protected  void postIncorrectInsert(EntityResult result, Entity entity)
          Method called when an insert operation finalizes with error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastResult

protected EntityResult lastResult
Constructor Detail

BasicInteractionManager.InsertListener

public BasicInteractionManager.InsertListener()
Method Detail

getLastResult

public EntityResult getLastResult()
Returns the last insert operation result.

Returns:
the last insert operation result

postIncorrectInsert

protected void postIncorrectInsert(EntityResult result,
                                   Entity entity)
                            throws java.lang.Exception
Method called when an insert operation finalizes with error.

Parameters:
result -
entity -
Throws:
java.lang.Exception

postCorrectInsert

protected void postCorrectInsert(EntityResult result,
                                 Entity entity)
                          throws java.lang.Exception
Method called after performing an insertion successfully. Updates the tree, and the form when necessary.

Parameters:
result - operation result
entity - the entity used to perform the operation
Throws:
java.lang.Exception

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Performs the Insert operation. Checks the BasicInteractionManager.checkInsert() method prior performing the operation.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

Ontimize