|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable<java.lang.Object,java.lang.Object> java.util.Properties net.clackrouter.jgraph.utils.UserProperties
public class UserProperties
Field Summary | |
---|---|
protected java.io.File |
file
|
protected static java.util.Vector |
instances
|
protected java.lang.String |
nameSpace
|
Fields inherited from class java.util.Properties |
---|
defaults |
Method Summary | |
---|---|
static UserProperties |
getInstance(java.lang.String nameSpace)
Multi-Singleton instance factory method. |
java.awt.Rectangle |
getRect(java.lang.String key)
Gets the {3} attribute of the UserProperties object |
void |
save()
Description of the Method |
static void |
saveAll()
Description of the Method |
void |
setRect(java.lang.String key,
java.awt.Rectangle r)
Sets the {3} attribute of the UserProperties object |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static java.util.Vector instances
protected java.lang.String nameSpace
protected java.io.File file
Method Detail |
---|
public static final UserProperties getInstance(java.lang.String nameSpace)
nameSpace
- nameSpace is the name of the directory that user properties will be stored.
This acts as a 'namespace' by which sets of properties can collectively be stored. For each
new nameSpace, a new directory (prepended with '.') is created and properties stored in a
file named user.properties. For example, if 'example' is passed as nameSpace, the following
directory would be created C:\\Documents and Settings\\userlogin\\.testapp\\user.properties
(Win2k).
public static void saveAll()
public void setRect(java.lang.String key, java.awt.Rectangle r)
key
- The new {3} valuer
- The new {3} valuepublic java.awt.Rectangle getRect(java.lang.String key)
key
- Description of Parameter
public void save()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |