celeboss.ui
Class UIPreferences

java.lang.Object
  extended byceleboss.ui.UIPreferences

public class UIPreferences
extends java.lang.Object

This class holds the users' UI preferences

Version:
1.0
Author:
bevans

Method Summary
 java.lang.String getPreference(java.lang.String name)
          Get the vlaue of a string preference
static UIPreferences getPreferences()
          Factory method to get a reference to the global Preferences for the current user
 boolean isBalloonsEnabled()
           
 boolean isDivBalloonsEnabled()
           
 boolean isWorthBallonsEnabled()
           
 void setBalloonsEnabled(boolean enabled)
           
 void setDivBalloonsEnabled(boolean enabled)
           
 void setPreference(java.lang.String name, java.lang.String value)
          Set the value of a preference
 void setWorthBallonsEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPreferences

public static UIPreferences getPreferences()
Factory method to get a reference to the global Preferences for the current user

Returns:
Users' preferences

getPreference

public java.lang.String getPreference(java.lang.String name)
Get the vlaue of a string preference

Parameters:
name - Name of preference
Returns:
String value or null

isBalloonsEnabled

public boolean isBalloonsEnabled()
Returns:
Returns the balloonsEnabled.

isDivBalloonsEnabled

public boolean isDivBalloonsEnabled()
Returns:
Returns the divBalloonsEnabled.

isWorthBallonsEnabled

public boolean isWorthBallonsEnabled()
Returns:
Returns the worthBallonsEnabled.

setBalloonsEnabled

public void setBalloonsEnabled(boolean enabled)
Parameters:
enabled - The balloonsEnabled to set.

setDivBalloonsEnabled

public void setDivBalloonsEnabled(boolean enabled)
Parameters:
enabled - The divBalloonsEnabled to set.

setPreference

public void setPreference(java.lang.String name,
                          java.lang.String value)
Set the value of a preference

Parameters:
name - Name of preference
value - Preference value

setWorthBallonsEnabled

public void setWorthBallonsEnabled(boolean enabled)
Parameters:
enabled - The worthBallonsEnabled to set.