|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.curre.prefcount.bean.Settings
public class Settings
Object of this class represents a bean for storing application settings (window size, theme, default locale, etc.).
Created date: Jun 10, 2007
| Field Summary | |
|---|---|
static Place |
DEFAULT_ADJ_PLAYER
Default player for the "Divisible by N" mount adjustment. |
static int |
DEFAULT_DIALOG_FRAME_HEIGHT
Default value for the dialog window frame height. |
static int |
DEFAULT_DIALOG_FRAME_WIDTH
Default value for the dialog window frame width. |
static java.lang.String |
DEFAULT_DIVISIBLE_BY
Default divisible by option. |
static java.lang.String |
DEFAULT_LAF_SKIN_ID
Default value for the Look and Feel theme/skin ID. |
static int |
DEFAULT_MAIN_FRAME_HEIGHT
Default value for the main window frame height. |
static int |
DEFAULT_MAIN_FRAME_WIDTH
Default value for the main window frame width. |
static java.lang.String |
DEFAULT_PLAYERS_NUMBER
Default number of players option. |
static java.lang.String |
DEFAULT_PREF_TYPE
Default preferance type option. |
| Constructor Summary | |
|---|---|
Settings()
Default constructor that initializes all properties to the default values. |
|
| Method Summary | |
|---|---|
int |
getDialogFrameHeight()
Getter for the dialog window frame height. |
int |
getDialogFrameWidth()
Getter for the dialog window frame width. |
java.lang.String |
getDivisibleBy()
Getter for the Divisible By option (a WindowComponent enum name). |
java.lang.String |
getLafSkinId()
Getter for the Look and Feel theme/skin ID (resource key). |
java.lang.String |
getLocaleId()
Getter for the locale identifier (case insensitive language name). |
int |
getMainFrameHeight()
Getter for the main window frame height. |
int |
getMainFrameWidth()
Getter for the main window frame width. |
java.lang.String |
getPlayersNumber()
Getter for the Number of players option. |
java.lang.String |
getPrefType()
Getter for the the Preferance type option. |
void |
reset()
Method to reset the settings to default values. |
void |
setDialogFrameHeight(int dialogFrameHeight)
Setter for the dialog window frame height. |
void |
setDialogFrameWidth(int dialogFrameWidth)
Setter for the dialog window frame width. |
void |
setDivisibleBy(java.lang.String divisibleBy)
Setter for property 'divisibleBy'. |
void |
setLafSkinId(java.lang.String lafSkinId)
Setter for the Look and Feel theme/skin ID (resource key). |
void |
setLocaleId(java.lang.String localeId)
Setter for the locale identifier (case insensitive language name). |
void |
setMainFrameHeight(int mainFrameHeight)
Setter for the main window frame height. |
void |
setMainFrameWidth(int mainFrameWidth)
Setter for the main window frame width. |
void |
setPlayersNumber(java.lang.String playersNumber)
Setter for property 'playersNumber'. |
void |
setPrefType(java.lang.String prefType)
Setter for property 'prefType'. |
void |
testSettings()
Tests if settings values are null and sets them to the default values if they are null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAIN_FRAME_WIDTH
public static final int DEFAULT_MAIN_FRAME_HEIGHT
public static final int DEFAULT_DIALOG_FRAME_WIDTH
public static final int DEFAULT_DIALOG_FRAME_HEIGHT
public static final java.lang.String DEFAULT_LAF_SKIN_ID
public static final java.lang.String DEFAULT_PREF_TYPE
public static final java.lang.String DEFAULT_PLAYERS_NUMBER
public static final java.lang.String DEFAULT_DIVISIBLE_BY
public static final Place DEFAULT_ADJ_PLAYER
| Constructor Detail |
|---|
public Settings()
| Method Detail |
|---|
public int getMainFrameWidth()
public void setMainFrameWidth(int mainFrameWidth)
mainFrameWidth - Main window frame width.public int getMainFrameHeight()
public void setMainFrameHeight(int mainFrameHeight)
mainFrameHeight - Main window frame height.public int getDialogFrameWidth()
public void setDialogFrameWidth(int dialogFrameWidth)
dialogFrameWidth - Dialog window frame width.public int getDialogFrameHeight()
public void setDialogFrameHeight(int dialogFrameHeight)
dialogFrameHeight - Dialog window frame height.public java.lang.String getLafSkinId()
public void setLafSkinId(java.lang.String lafSkinId)
lafSkinId - The Look and Feel theme/skin ID (resource key).public java.lang.String getLocaleId()
public void setLocaleId(java.lang.String localeId)
localeId - Locale identifier (case insensitive language name).public java.lang.String getPrefType()
public void setPrefType(java.lang.String prefType)
prefType - WindowComponent enum name that represents the Preferance type option.public java.lang.String getPlayersNumber()
public void setPlayersNumber(java.lang.String playersNumber)
playersNumber - WindowComponent enum name that represents the Number of players option.public java.lang.String getDivisibleBy()
public void setDivisibleBy(java.lang.String divisibleBy)
divisibleBy - WindowComponent enum name that represents the Divisible By option.public void reset()
public void testSettings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||