templates.presentation
Class UIActions.OpenModelAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by templates.presentation.UIActions.OpenModelAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
UIActions

public static class UIActions.OpenModelAction
extends javax.swing.AbstractAction

Action to load and activate in IDES the underlying model of a template component.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  TemplateEditableCanvas canvas
          The canvas which contains the entity for the template component whose underlying model has to be loaded and activated.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
UIActions.OpenModelAction(TemplateEditableCanvas canvas, Entity entity)
          Construct an action to load and activate in IDES the underlying model of the specified template component.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Load and activate in IDES the underlying model of the specified template component.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canvas

protected TemplateEditableCanvas canvas
The canvas which contains the entity for the template component whose underlying model has to be loaded and activated.

Constructor Detail

UIActions.OpenModelAction

public UIActions.OpenModelAction(TemplateEditableCanvas canvas,
                                 Entity entity)
Construct an action to load and activate in IDES the underlying model of the specified template component.

Parameters:
canvas - the canvas which contains the entity for the template component whose underlying model has to be loaded and activated
entity - the entity for the template component whose underlying model has to be loaded and activated
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Load and activate in IDES the underlying model of the specified template component. If the model is already loaded, only activate it. Do nothing if the template component does not have an underlying model.