StocksMonitor 1.5.0

hirondelle.stocks.preferences
Class EditUserPreferencesAction

Object
  extended by AbstractAction
      extended by EditUserPreferencesAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public final class EditUserPreferencesAction
extends AbstractAction

Present dialog to allow update of user preferences.

Related preferences are grouped together and placed in a single pane of a JTabbedPane, which corresponds to an implementation of PreferencesEditor. Values are pre-populated with current values for preferences.

Most preferences have default values. If so, a Restore Defaults button is provided for that set of related preferences.

Preferences are not changed until the OK button is pressed. Exception: the logging preferences take effect immediately, without the need for hitting OK.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class AbstractAction
changeSupport, enabled
 
Fields inherited from interface Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
EditUserPreferencesAction(JFrame aFrame, List<PreferencesEditor> aPrefEditors)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Display the user preferences dialog.
 
Methods inherited from class AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditUserPreferencesAction

public EditUserPreferencesAction(JFrame aFrame,
                                 List<PreferencesEditor> aPrefEditors)
Constructor.

Parameters:
aFrame - parent window to which this dialog is attached.
aPrefEditors - contains implementations of PreferencesEditor, each of which is placed in a pane of a JTabbedPane.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Display the user preferences dialog.


StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53