|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.utility.ConfigurationParameters
Holds the available properties for this Naked Objects session.
| Constructor Summary | |
ConfigurationParameters()
|
|
| Method Summary | |
void |
add(java.lang.String key,
java.lang.String value)
Adds a key-value pair to this set of properties |
boolean |
getBoolean(java.lang.String name)
Gets the boolean value for the specified name where no value or 'on' will result in true being returned; anything gives false. |
boolean |
getBoolean(java.lang.String name,
boolean defaultValue)
Gets the boolean value for the specified name. |
java.awt.Color |
getColor(java.lang.String name)
Gets the color for the specified name. |
java.awt.Color |
getColor(java.lang.String name,
java.awt.Color defaultValue)
Gets the color for the specified name. |
java.awt.Font |
getFont(java.lang.String name)
Gets the font for the specified name. |
java.awt.Font |
getFont(java.lang.String name,
java.awt.Font defaultValue)
Gets the font for the specified name. |
static ConfigurationParameters |
getInstance()
Returns the singleton that is to be used to access the properties. |
int |
getInteger(java.lang.String name)
Gets the number value for the specified name. |
int |
getInteger(java.lang.String name,
int defaultValue)
Gets the nimber value for the specified name. |
java.util.Properties |
getProperties()
Deprecated. |
java.util.Properties |
getProperties(java.lang.String prefix)
Gets the set of properties with the specified prefix |
java.lang.String |
getResource()
Deprecated. |
java.lang.String |
getString(java.lang.String name)
Returns the configuration property with the specified name. |
java.lang.String |
getString(java.lang.String name,
java.lang.String defaultValue)
|
boolean |
hasProperty(java.lang.String name)
|
void |
load(java.util.Properties properties)
Loads the properties from an existing Properties object. |
void |
load(java.lang.String resource)
|
void |
load(java.net.URL resource)
Loads the properties via a URL |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ConfigurationParameters()
| Method Detail |
public java.awt.Color getColor(java.lang.String name)
name - the property name
public java.awt.Color getColor(java.lang.String name,
java.awt.Color defaultValue)
name - the property namedefaultValue - the value to use as a defaultpublic java.awt.Font getFont(java.lang.String name)
name - the property name
public java.awt.Font getFont(java.lang.String name,
java.awt.Font defaultValue)
name - the property namedefaultValue - the color to use as a defaultpublic static final ConfigurationParameters getInstance()
public boolean getBoolean(java.lang.String name)
name - the property name
public boolean getBoolean(java.lang.String name,
boolean defaultValue)
name - the property namedefaultValue - the value to use as a default
public int getInteger(java.lang.String name,
int defaultValue)
name - the property namedefaultValue - the value to use as a defaultpublic int getInteger(java.lang.String name)
name - the property namepublic java.util.Properties getProperties()
public java.util.Properties getProperties(java.lang.String prefix)
public java.lang.String getResource()
public java.lang.String getString(java.lang.String name)
public java.lang.String getString(java.lang.String name,
java.lang.String defaultValue)
public void add(java.lang.String key,
java.lang.String value)
key - value - public boolean hasProperty(java.lang.String name)
public void load(java.lang.String resource)
public void load(java.net.URL resource)
resource - public void load(java.util.Properties properties)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||