net.curre.prefcount
Class PrefCountRegistry

java.lang.Object
  extended by net.curre.prefcount.PrefCountRegistry

public class PrefCountRegistry
extends java.lang.Object

This is the central place for all prefcount settings and configuration data.

Created date: May 30, 2007

Author:
Yevgeny Nyden

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
 void disposeChoosePlayerDialog()
          Destroys the choose player dialog.
 ChoosePlayerDialog getChoosePlayerDialog()
          Gets the choose player dialog (note, that it will be created if if doesn't exist).
static LocaleExt getCurrentLocale()
          Returns the current locale.
 GameResultBean getGameResultBean()
          Getter for the game result bean.
static PrefCountRegistry getInstance()
          Returns the singleton instance of this class.
 LastInputPanel getLastInputPanel()
          Getter for the past input panel reference.
 MainController getMainController()
          Gets reference to the main controller bean.
 MainWindow getMainWindow()
          Getter for the main window reference.
 MenuItemsBean getMenuItemsBean()
          Getter for the reference to the menu items bean.
 PlayerDialogBaseFrame getPlayerDialogFrame()
          Getter for the player dialog frame.
 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 setMainController(MainController mainController)
          Sets the main controller bean reference.
 void setMainWindow(MainWindow mainWindow)
          Setter for the main window reference.
 void setPlayerDialogFrame(PlayerDialogBaseFrame playerDialogFrame)
          Setter for the player dialog frame.
 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

APPLICATION_NAME

public static final java.lang.String APPLICATION_NAME
Application name.

See Also:
Constant Field Values

IMAGES_DIR

public static final java.lang.String IMAGES_DIR
Location of the images directory.

See Also:
Constant Field Values

DEFAULT_LOCALE_ID

public static final java.lang.String DEFAULT_LOCALE_ID
Default value for the locale ID (case insensitive language name).

See Also:
Constant Field Values

SETTINGS_FILE_NAME

public static final java.lang.String SETTINGS_FILE_NAME
Name of the settings file.

See Also:
Constant Field Values

AVAILABLE_LOCALES

public static final LocaleExt[] AVAILABLE_LOCALES
Array of available locales in the application.

Method Detail

getInstance

public static PrefCountRegistry getInstance()
Returns the singleton instance of this class.

Returns:
The singleton instance of this class.

getCurrentLocale

public static LocaleExt getCurrentLocale()
Returns the current locale.

Returns:
The current locale.

setCurrentLocale

public void setCurrentLocale(java.lang.String localeId)
Setter for the current locale.

Parameters:
localeId - Identifier (case insensitive language name) for the locale to which to set.

getMenuItemsBean

public MenuItemsBean getMenuItemsBean()
Getter for the reference to the menu items bean.

Returns:
reference to the menu items bean.

getGameResultBean

public GameResultBean getGameResultBean()
Getter for the game result bean.

Returns:
reference to the game result bean.

getMainWindow

public MainWindow getMainWindow()
Getter for the main window reference.

Returns:
The reference to the main window object.

setMainWindow

public void setMainWindow(MainWindow mainWindow)
Setter for the main window reference.

Parameters:
mainWindow - Reference to the main window object.

getPlayerDialogFrame

public PlayerDialogBaseFrame getPlayerDialogFrame()
Getter for the player dialog frame.

Returns:
reference to the player dialog frame.

setPlayerDialogFrame

public void setPlayerDialogFrame(PlayerDialogBaseFrame playerDialogFrame)
Setter for the player dialog frame.

Parameters:
playerDialogFrame - reference to the player dialog frame.

getLastInputPanel

public LastInputPanel getLastInputPanel()
Getter for the past input panel reference.

Returns:
Reference to the last input panel.

setLastInputPanel

public void setLastInputPanel(LastInputPanel lastInputPanel)
Setter for the last input panel reference.

Parameters:
lastInputPanel - Reference to the last input panel to set.

getSettingsFilePath

public java.lang.String getSettingsFilePath()
Getter for property 'settingsFilePath' (absolute path to the settings file, including filename).

Returns:
Value for property 'settingsFilePath'.

setSettingsFilePath

public void setSettingsFilePath(java.lang.String settingsFilePath)
Setter for property 'settingsFilePath' (absolute path to the settings file, including filename).

Parameters:
settingsFilePath - Value to set for property 'settingsFilePath'.

getMainController

public MainController getMainController()
Gets reference to the main controller bean.

Returns:
reference to the main controller bean.

setMainController

public void setMainController(MainController mainController)
Sets the main controller bean reference.

Parameters:
mainController - reference to the main controller bean.

getChoosePlayerDialog

public ChoosePlayerDialog getChoosePlayerDialog()
Gets the choose player dialog (note, that it will be created if if doesn't exist).

Returns:
reference to the choose player dialog.

disposeChoosePlayerDialog

public void disposeChoosePlayerDialog()
Destroys the choose player dialog.



Copyright © 2008. All Rights Reserved.