motris.gui
Class ActorController.AddActorAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bymotris.gui.DropDownAction
          extended bymotris.gui.ActorController.AddActorAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, ParameterizedObject.ParameterizedObjectManager, java.io.Serializable
Direct Known Subclasses:
ActorLister.LoadExperimentResultsAction
Enclosing class:
ActorController

public class ActorController.AddActorAction
extends DropDownAction
implements ParameterizedObject.ParameterizedObjectManager

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
 
Fields inherited from class motris.gui.DropDownAction
DROPDOWN_NAME, IS_SELECTED_KEY
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ActorController.AddActorAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 Actor addActor(ParameterSet additionalParams, java.lang.String fullFileName)
          create actor using the default Actor Parameters from AlgorithmFactory and the additional ones supplied here
 javax.swing.JMenu getDropDownMenu(javax.swing.JComponent source)
           
 void loadSaveFile(java.lang.String fileName, boolean doLoad)
          Called (for example by FileHistory) with a filename from that the data for the managed object should be loaded
 
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
 

Constructor Detail

ActorController.AddActorAction

public ActorController.AddActorAction()
Method Detail

actionPerformed

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

getDropDownMenu

public javax.swing.JMenu getDropDownMenu(javax.swing.JComponent source)
Specified by:
getDropDownMenu in class DropDownAction

addActor

public Actor addActor(ParameterSet additionalParams,
                      java.lang.String fullFileName)
create actor using the default Actor Parameters from AlgorithmFactory and the additional ones supplied here

Parameters:
additionalParams - addition parameters (to be merged with default ones)
fullFileName - Actor XML File name to be stored in Actor.description for later saving
Returns:
the created actor

loadSaveFile

public void loadSaveFile(java.lang.String fileName,
                         boolean doLoad)
Description copied from interface: ParameterizedObject.ParameterizedObjectManager
Called (for example by FileHistory) with a filename from that the data for the managed object should be loaded

Specified by:
loadSaveFile in interface ParameterizedObject.ParameterizedObjectManager
Parameters:
fileName -