StocksMonitor 1.5.0

hirondelle.stocks.preferences
Class QuoteTablePreferencesEditor

Object
  extended by Observable
      extended by QuoteTablePreferencesEditor
All Implemented Interfaces:
PreferencesEditor

public final class QuoteTablePreferencesEditor
extends Observable
implements PreferencesEditor

Graphical component allows editing of user preferences related to the QuoteTable, and programmatic read-only access to these preferences.


Constructor Summary
QuoteTablePreferencesEditor()
           
 
Method Summary
 Set<Object> getColumnOrder()
          Return Set of QuoteField objects, whose iteration order reflects the user's preferred column order.
 int getMnemonic()
          The mnemonic to appear in the tab name.
 int getRowHeight()
          Return the height of each row in pixels, in the range 16..32 (inclusive).
 QuoteField getSortField()
          Return a field identifier, but no ascending-descending indicator.
 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.
 int getUpdateFrequency()
          Return the number of minutes to wait between periodic updates, in the range 1..60.
 boolean hasHorizontalLines()
          Return preference for the display of horizontal lines for each row.
 boolean hasVerticalLines()
          Return preference for the display of vertical lines for each column.
 void matchGuiToDefaultPreferences()
          Reset the related preferences to their default values, but only as presented in the GUI, without affecting stored preference values.
 void savePreferences()
          Store the related preferences as they are currently displayed, overwriting all corresponding settings.
 
Methods inherited from class Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuoteTablePreferencesEditor

public QuoteTablePreferencesEditor()
Method Detail

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

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

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

savePreferences

public void savePreferences()
Description copied from interface: PreferencesEditor
Store the related preferences as they are currently displayed, overwriting all corresponding settings.

Specified by:
savePreferences in interface PreferencesEditor

matchGuiToDefaultPreferences

public void matchGuiToDefaultPreferences()
Description copied from interface: PreferencesEditor
Reset the related preferences to their default values, but only as presented in the GUI, without affecting stored preference values.

This method may not apply in all cases. For example, if the item represents a config which has no meaningful default value (such as a mail server name), the desired behavior may be to only allow a manual change. In such a case, the implementation of this method must be a no-operation.

Specified by:
matchGuiToDefaultPreferences in interface PreferencesEditor

hasHorizontalLines

public boolean hasHorizontalLines()
Return preference for the display of horizontal lines for each row.


hasVerticalLines

public boolean hasVerticalLines()
Return preference for the display of vertical lines for each column.


getRowHeight

public int getRowHeight()
Return the height of each row in pixels, in the range 16..32 (inclusive).


getSortField

public QuoteField getSortField()
Return a field identifier, but no ascending-descending indicator.


getColumnOrder

public Set<Object> getColumnOrder()
Return Set of QuoteField objects, whose iteration order reflects the user's preferred column order.


getUpdateFrequency

public int getUpdateFrequency()
Return the number of minutes to wait between periodic updates, in the range 1..60.


StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53