Ontimize 5.2072EN

com.ontimize.gui
Class BasicInteractionManager.UpdateListener

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

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

Update button default listener. Gets the modified fields in the form, and sends a undo request to the server. This class holds the previous operation result.

Author:
Imatia Innovation

Field Summary
protected  EntityResult lastResult
           
 
Constructor Summary
BasicInteractionManager.UpdateListener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 EntityResult getLastResult()
          Returns the result of the last update.
protected  void postCorrectUpdate(EntityResult result, Entity entity)
          Method called when the updating process finishes successfully.
protected  void postIncorrectUpdate(EntityResult result, Entity entity)
          Method called when the update was wrong.
 
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.UpdateListener

public BasicInteractionManager.UpdateListener()
Method Detail

postIncorrectUpdate

protected void postIncorrectUpdate(EntityResult result,
                                   Entity entity)
                            throws java.lang.Exception
Method called when the update was wrong.

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

getLastResult

public EntityResult getLastResult()
Returns the result of the last update.

Returns:

postCorrectUpdate

protected void postCorrectUpdate(EntityResult result,
                                 Entity entity)
                          throws java.lang.Exception
Method called when the updating process finishes successfully. Updates the tables and the tree when necessary.

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

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

Ontimize