net.curre.prefcount.bean
Class Settings

java.lang.Object
  extended by net.curre.prefcount.bean.Settings
All Implemented Interfaces:
java.io.Serializable

public class Settings
extends java.lang.Object
implements java.io.Serializable

Object of this class represents a bean for storing application settings (window size, theme, default locale, etc.).

Created date: Jun 10, 2007

Author:
Yevgeny Nyden
See Also:
Serialized Form

Field Summary
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_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.
 
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 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.
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAIN_FRAME_WIDTH

public static final int DEFAULT_MAIN_FRAME_WIDTH
Default value for the main window frame width.

See Also:
Constant Field Values

DEFAULT_MAIN_FRAME_HEIGHT

public static final int DEFAULT_MAIN_FRAME_HEIGHT
Default value for the main window frame height.

See Also:
Constant Field Values

DEFAULT_DIALOG_FRAME_WIDTH

public static final int DEFAULT_DIALOG_FRAME_WIDTH
Default value for the dialog window frame width.

See Also:
Constant Field Values

DEFAULT_DIALOG_FRAME_HEIGHT

public static final int DEFAULT_DIALOG_FRAME_HEIGHT
Default value for the dialog window frame height.

See Also:
Constant Field Values

DEFAULT_LAF_SKIN_ID

public static final java.lang.String DEFAULT_LAF_SKIN_ID
Default value for the Look and Feel theme/skin ID.

See Also:
Constant Field Values
Constructor Detail

Settings

public Settings()
Default constructor that initializes all properties to the default values.

Method Detail

getMainFrameWidth

public int getMainFrameWidth()
Getter for the main window frame width.

Returns:
The main window frame width.

setMainFrameWidth

public void setMainFrameWidth(int mainFrameWidth)
Setter for the main window frame width.

Parameters:
mainFrameWidth - Main window frame width.

getMainFrameHeight

public int getMainFrameHeight()
Getter for the main window frame height.

Returns:
The main window frame height.

setMainFrameHeight

public void setMainFrameHeight(int mainFrameHeight)
Setter for the main window frame height.

Parameters:
mainFrameHeight - Main window frame height.

getDialogFrameWidth

public int getDialogFrameWidth()
Getter for the dialog window frame width.

Returns:
The dialog window frame width.

setDialogFrameWidth

public void setDialogFrameWidth(int dialogFrameWidth)
Setter for the dialog window frame width.

Parameters:
dialogFrameWidth - Dialog window frame width.

getDialogFrameHeight

public int getDialogFrameHeight()
Getter for the dialog window frame height.

Returns:
The dialog window frame height.

setDialogFrameHeight

public void setDialogFrameHeight(int dialogFrameHeight)
Setter for the dialog window frame height.

Parameters:
dialogFrameHeight - Dialog window frame height.

getLafSkinId

public java.lang.String getLafSkinId()
Getter for the Look and Feel theme/skin ID (resource key).

Returns:
The Look and Feel theme/skin ID (resource key).

setLafSkinId

public void setLafSkinId(java.lang.String lafSkinId)
Setter for the Look and Feel theme/skin ID (resource key).

Parameters:
lafSkinId - The Look and Feel theme/skin ID (resource key).

getLocaleId

public java.lang.String getLocaleId()
Getter for the locale identifier (case insensitive language name).

Returns:
The locale identifier (language name).

setLocaleId

public void setLocaleId(java.lang.String localeId)
Setter for the locale identifier (case insensitive language name).

Parameters:
localeId - Locale identifier (case insensitive language name).

reset

public void reset()
Method to reset the settings to default values.



Copyright © 2008. All Rights Reserved.