|
StocksMonitor 1.5.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectObservable
GeneralLookPreferencesEditor
public final class GeneralLookPreferencesEditor
Allows editing of user preferences related to the general appearance of the application, such as font size, toolbar icon size, theme, and the like.
Also allows programmatic read-only access to the current stored preferences for these items.
| Constructor Summary | |
|---|---|
GeneralLookPreferencesEditor()
|
|
| Method Summary | |
|---|---|
int |
getMnemonic()
The mnemonic to appear in the tab name. |
MetalTheme |
getTheme()
Return the stored user preference for the theme to be applied to the Java look-and-feel. |
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. |
boolean |
hasLargeIcons()
Return the stored user preference for using large icons. |
boolean |
hasShowToolBar()
Return the stored user preference for hiding or showing the toolbar. |
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 |
|---|
public GeneralLookPreferencesEditor()
| Method Detail |
|---|
public JComponent getUI()
PreferencesEditor
getUI in interface PreferencesEditorpublic String getTitle()
PreferencesEditor
getTitle in interface PreferencesEditorpublic int getMnemonic()
PreferencesEditorMust match a letter appearing in PreferencesEditor.getTitle().
Use constants defined in KeyEvent, for example KeyEvent.VK_A.
getMnemonic in interface PreferencesEditorpublic void savePreferences()
PreferencesEditor
savePreferences in interface PreferencesEditorpublic void matchGuiToDefaultPreferences()
PreferencesEditorThis 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.
matchGuiToDefaultPreferences in interface PreferencesEditorpublic boolean hasShowToolBar()
public boolean hasLargeIcons()
public MetalTheme getTheme()
|
StocksMonitor 1.5.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||