ptolemy.vergil.gt
Class TransformationAttributeController.Listener

java.lang.Object
  extended by ptolemy.vergil.gt.TransformationAttributeEditorFactory.TransformationListener
      extended by ptolemy.vergil.gt.TransformationAttributeController.Listener
All Implemented Interfaces:
java.awt.event.WindowListener, java.util.EventListener, ExecutionListener, ChangeListener
Enclosing class:
TransformationAttributeController

private static class TransformationAttributeController.Listener
extends TransformationAttributeEditorFactory.TransformationListener
implements ChangeListener, java.awt.event.WindowListener


Field Summary
private  PteraGraphFrame _child
           
private  BasicGraphFrame _parent
           
 
Fields inherited from class ptolemy.vergil.gt.TransformationAttributeEditorFactory.TransformationListener
_frame, _model, _transformation
 
Constructor Summary
TransformationAttributeController.Listener(PteraModalModel transformation, BasicGraphFrame parent, PteraGraphFrame child)
           
 
Method Summary
private  void _addListeners()
           
private  void _removeListeners()
           
 void changeExecuted(ChangeRequest change)
          React to a change request has been successfully executed.
 void changeFailed(ChangeRequest change, java.lang.Exception exception)
          React to a change request has resulted in an exception.
 void managerStateChanged(Manager manager)
          Report that the manager has changed state.
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class ptolemy.vergil.gt.TransformationAttributeEditorFactory.TransformationListener
executionError, executionFinished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_child

private PteraGraphFrame _child

_parent

private BasicGraphFrame _parent
Constructor Detail

TransformationAttributeController.Listener

TransformationAttributeController.Listener(PteraModalModel transformation,
                                           BasicGraphFrame parent,
                                           PteraGraphFrame child)
                                     throws NameDuplicationException
Throws:
NameDuplicationException
Method Detail

changeExecuted

public void changeExecuted(ChangeRequest change)
Description copied from interface: ChangeListener
React to a change request has been successfully executed. This method is called after a change request has been executed successfully.

Specified by:
changeExecuted in interface ChangeListener
Parameters:
change - The change that has been executed, or null if the change was not done via a ChangeRequest.

changeFailed

public void changeFailed(ChangeRequest change,
                         java.lang.Exception exception)
Description copied from interface: ChangeListener
React to a change request has resulted in an exception. This method is called after a change request was executed, but during the execution an exception was thrown.

Specified by:
changeFailed in interface ChangeListener
Parameters:
change - The change that was attempted or null if the change was not done via a ChangeRequest.
exception - The exception that resulted.

managerStateChanged

public void managerStateChanged(Manager manager)
Description copied from interface: ExecutionListener
Report that the manager has changed state. To access the new state, use the getState() method of Manager.

Specified by:
managerStateChanged in interface ExecutionListener
Overrides:
managerStateChanged in class TransformationAttributeEditorFactory.TransformationListener
Parameters:
manager - The manager controlling the execution.
See Also:
Manager.getState()

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

_addListeners

private void _addListeners()

_removeListeners

private void _removeListeners()