StocksMonitor 1.5.0

hirondelle.stocks.preferences
Class LoggingPreferencesEditor

Object
  extended by LoggingPreferencesEditor
All Implemented Interfaces:
PreferencesEditor

public final class LoggingPreferencesEditor
extends Object
implements PreferencesEditor

Refresh the logging config file used upon startup, through a call to LogManager.readConfiguration().

Additionally, sets a temporary global logging level, which acts as on override of the current settings. Setting this level affects all handlers (except OptionPaneExceptionHandler) attached to the root Logger, and all known loggers, corresponding to return value of LogManager.getLoggerNames().

This PreferencesEditor is unusual in that user actions are performed immediately, without waiting for the user to hit the OK button.


Constructor Summary
LoggingPreferencesEditor()
           
 
Method Summary
 File getLogConfigFile()
          Return the File which is currently being used by this application to configure the Java Logging API.
 int getMnemonic()
          The mnemonic to appear in the tab name.
 String getTitle()
          The name of the tab in which this PreferencesEditor will be placed.
 JComponent getUI()
          Return a GUI component which allows the user to edit this set of related preferences.
 void matchGuiToDefaultPreferences()
          No-operation.
 void savePreferences()
          No-operation.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingPreferencesEditor

public LoggingPreferencesEditor()
Method Detail

getMnemonic

public int getMnemonic()
Description copied from interface: PreferencesEditor
The mnemonic to appear in the tab name.

Must match a letter appearing in PreferencesEditor.getTitle(). Use constants defined in KeyEvent, for example KeyEvent.VK_A.

Specified by:
getMnemonic in interface PreferencesEditor

getTitle

public String getTitle()
Description copied from interface: PreferencesEditor
The name of the tab in which this PreferencesEditor will be placed.

Specified by:
getTitle in interface PreferencesEditor

getUI

public JComponent getUI()
Description copied from interface: PreferencesEditor
Return a GUI component which allows the user to edit this set of related preferences.

Specified by:
getUI in interface PreferencesEditor

matchGuiToDefaultPreferences

public void matchGuiToDefaultPreferences()
No-operation. Does not apply to this case, since there are no default preferences.

Specified by:
matchGuiToDefaultPreferences in interface PreferencesEditor

savePreferences

public void savePreferences()
No-operation. Does not apply to this case, since there are no stored preferences for logging.

Specified by:
savePreferences in interface PreferencesEditor

getLogConfigFile

public File getLogConfigFile()
Return the File which is currently being used by this application to configure the Java Logging API.


StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53