org.argouml.ui
Class ActionSettings

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.argouml.uml.ui.UMLAction
          extended byorg.argouml.ui.ActionSettings
All Implemented Interfaces:
Action, ActionListener, ArgoEventListener, ArgoModuleEventListener, Cloneable, EventListener, Serializable

public class ActionSettings
extends UMLAction
implements ArgoModuleEventListener

Action for starting the Argo settings window.

Since:
0.9.4
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  JButton applyButton
           
private  ArgoDialog dialog
           
private static Logger LOG
          Logger.
private static ActionSettings SINGLETON
          Deprecated. by Linus Tolke as of 0.17.1. Create your own instance of this action.
private  JTabbedPane tabs
           
 
Fields inherited from class org.argouml.uml.ui.UMLAction
HAS_ICON, NO_ICON
 
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
ActionSettings()
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Perform the work the action is supposed to do.
static ActionSettings getInstance()
          Deprecated. by Linus Tolke as of 0.17.1. Create your own instance of this action.
private  void handleCancel()
          Called when the user has pressed Cancel.
private  void handleRefresh()
          Called when the user has pressed Refresh.
private  void handleSave()
          Called when the user has pressed Save.
private  String localize(String key)
          Helper for localization.
 void moduleDisabled(ArgoModuleEvent event)
          Invoked when a module has been disabled.
 void moduleEnabled(ArgoModuleEvent event)
          Invoked when a module has been enabled.
 void moduleLoaded(ArgoModuleEvent event)
          Invoked when a module has been loaded.
 void moduleUnloaded(ArgoModuleEvent event)
          Invoked when a module has been unloaded.
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getValue, isEnabled, putValue, shouldBeEnabled, updateEnabled, updateEnabled
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG
Logger.


SINGLETON

private static final ActionSettings SINGLETON
Deprecated. by Linus Tolke as of 0.17.1. Create your own instance of this action.

One and only instance.


applyButton

private JButton applyButton

tabs

private JTabbedPane tabs

dialog

private ArgoDialog dialog
Constructor Detail

ActionSettings

public ActionSettings()
Constructor.

Method Detail

getInstance

public static ActionSettings getInstance()
Deprecated. by Linus Tolke as of 0.17.1. Create your own instance of this action.

Get the instance.

Returns:
The instance.

localize

private String localize(String key)
Helper for localization.

Parameters:
key - The key to localize.
Returns:
The localized String.

actionPerformed

public void actionPerformed(ActionEvent event)
Description copied from class: UMLAction
Perform the work the action is supposed to do. This method needs to be overridden by all actions, since it only shows a fake progressbar...

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class UMLAction
See Also:
ActionListener.actionPerformed( java.awt.event.ActionEvent)

moduleLoaded

public void moduleLoaded(ArgoModuleEvent event)
Description copied from interface: ArgoModuleEventListener
Invoked when a module has been loaded.

Specified by:
moduleLoaded in interface ArgoModuleEventListener
Parameters:
event - the event
See Also:
ArgoModuleEventListener.moduleLoaded(org.argouml.application.events.ArgoModuleEvent)

moduleUnloaded

public void moduleUnloaded(ArgoModuleEvent event)
Description copied from interface: ArgoModuleEventListener
Invoked when a module has been unloaded.

Specified by:
moduleUnloaded in interface ArgoModuleEventListener
Parameters:
event - the event
See Also:
ArgoModuleEventListener.moduleUnloaded(org.argouml.application.events.ArgoModuleEvent)

moduleEnabled

public void moduleEnabled(ArgoModuleEvent event)
Description copied from interface: ArgoModuleEventListener
Invoked when a module has been enabled.

Specified by:
moduleEnabled in interface ArgoModuleEventListener
Parameters:
event - the event
See Also:
ArgoModuleEventListener.moduleEnabled(org.argouml.application.events.ArgoModuleEvent)

moduleDisabled

public void moduleDisabled(ArgoModuleEvent event)
Description copied from interface: ArgoModuleEventListener
Invoked when a module has been disabled.

Specified by:
moduleDisabled in interface ArgoModuleEventListener
Parameters:
event - the event
See Also:
ArgoModuleEventListener.moduleDisabled(org.argouml.application.events.ArgoModuleEvent)

handleSave

private void handleSave()
Called when the user has pressed Save. Performs "Save" in all Tabs.


handleCancel

private void handleCancel()
Called when the user has pressed Cancel. Performs "Cancel" in all Tabs.


handleRefresh

private void handleRefresh()
Called when the user has pressed Refresh. Performs "Refresh" in all Tabs.



ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook