Search this API

y.module
Class LaunchModuleAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by y.module.LaunchModuleAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class LaunchModuleAction
extends javax.swing.AbstractAction

An action that launches a YModule. If the module provides an OptionHandler then it's option editor will be automatically displayed before the module gets started.

See Also:
Serialized Form
 

Field Summary
 
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
LaunchModuleAction(ViewContainer vc, YModule module)
          Creates a new instance of LaunchModuleAction.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Displays an option editor for a module and then launches it.
 
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

LaunchModuleAction

public LaunchModuleAction(ViewContainer vc,
                          YModule module)
Creates a new instance of LaunchModuleAction.

Parameters:
vc - the view container that provides access to the underlying graph.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Displays an option editor for a module and then launches it.


© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.