|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.curre.prefcount.PrefCountRegistry
public class PrefCountRegistry
This is the central place for all prefcount settings and configuration data.
Created date: May 30, 2007
| Field Summary | |
|---|---|
static java.lang.String |
APPLICATION_NAME
Application name. |
static LocaleExt[] |
AVAILABLE_LOCALES
Array of available locales in the application. |
static java.lang.String |
DEFAULT_LOCALE_ID
Default value for the locale ID (case insensitive language name). |
static java.lang.String |
IMAGES_DIR
Location of the images directory. |
static java.lang.String |
SETTINGS_FILE_NAME
Name of the settings file. |
| Method Summary | |
|---|---|
PrefCountMenuBar |
addMainWindowMenuBar(javax.swing.JFrame frame,
javax.swing.JPanel topPanel)
Creates an appropriate menu bar for the main window and sets it on the mainWindow object. |
PrefCountMenuBar |
addPlayerDialogMenuBar(javax.swing.JFrame frame)
Creates a menu bar for the player dialog window and sets it on the mainWindow.playerDialogFrame object. |
void |
doQuit()
Disposes all frames and quits the application. |
static LocaleExt |
getCurrentLocale()
Returns the current locale. |
static PrefCountRegistry |
getInstance()
Returns the singleton instance of this class. |
LastInputPanel |
getLastInputPanel()
Getter for the past input panel reference. |
MainWindow |
getMainWindow()
Getter for the main window reference. |
java.lang.String |
getSettingsFilePath()
Getter for property 'settingsFilePath' (absolute path to the settings file, including filename). |
void |
setCurrentLocale(java.lang.String localeId)
Setter for the current locale. |
void |
setLastInputPanel(LastInputPanel lastInputPanel)
Setter for the last input panel reference. |
void |
setMainWindow(MainWindow mainWindow)
Setter for the main window reference. |
void |
setSettingsFilePath(java.lang.String settingsFilePath)
Setter for property 'settingsFilePath' (absolute path to the settings file, including filename). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String APPLICATION_NAME
public static final java.lang.String IMAGES_DIR
public static final java.lang.String DEFAULT_LOCALE_ID
public static final java.lang.String SETTINGS_FILE_NAME
public static final LocaleExt[] AVAILABLE_LOCALES
| Method Detail |
|---|
public static PrefCountRegistry getInstance()
public static LocaleExt getCurrentLocale()
public void setCurrentLocale(java.lang.String localeId)
localeId - Identifier (case insensitive language name)
for the locale to which to set.public MainWindow getMainWindow()
public void setMainWindow(MainWindow mainWindow)
mainWindow - Reference to the main window object.public LastInputPanel getLastInputPanel()
public void setLastInputPanel(LastInputPanel lastInputPanel)
lastInputPanel - Reference to the last input panel to set.public java.lang.String getSettingsFilePath()
public void setSettingsFilePath(java.lang.String settingsFilePath)
settingsFilePath - Value to set for property 'settingsFilePath'.public void doQuit()
public PrefCountMenuBar addMainWindowMenuBar(javax.swing.JFrame frame,
javax.swing.JPanel topPanel)
frame - Frame to add menu bar to.topPanel - Reference to the main window top panel -
the language indicator icon will be added there on Mac OS.
public PrefCountMenuBar addPlayerDialogMenuBar(javax.swing.JFrame frame)
frame - Reference to the frame to add this menu bar to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||