|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.ToolUtil.EditablePrefs
public static class ToolUtil.EditablePrefs
A simple editable object used to manipulate preferences.
| Field Summary | |
|---|---|
protected Preferences |
_prefs
The preferences node to use. |
protected File |
_resourceDir
The resource directory. |
protected ResourceManager |
_rsrcmgr
The resource manager. |
| Constructor Summary | |
|---|---|
ToolUtil.EditablePrefs(Preferences prefs)
Creates a new editable prefs object using the specified underlying preferences. |
|
| Method Summary | |
|---|---|
protected Color4f |
getPref(String key,
Color4f def)
Retrieves the value of a color preference. |
protected Object |
getPref(String key,
Object def)
Retrieves the value of an exportable preference. |
File |
getResourceDir()
Returns the resource directory. |
void |
init(ResourceManager rsrcmgr)
Initializes the prefs with a reference to the resource manager. |
protected void |
putPref(String key,
Color4f value)
Sets the value of a color preference. |
protected void |
putPref(String key,
Object value)
Sets the value of an exportable preference. |
void |
setResourceDir(File dir)
Sets the resource directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Preferences _prefs
protected ResourceManager _rsrcmgr
protected File _resourceDir
| Constructor Detail |
|---|
public ToolUtil.EditablePrefs(Preferences prefs)
| Method Detail |
|---|
public void init(ResourceManager rsrcmgr)
@Editable(mode="directory",
nullable=true)
public void setResourceDir(File dir)
@Editable public File getResourceDir()
protected Color4f getPref(String key,
Color4f def)
protected void putPref(String key,
Color4f value)
protected Object getPref(String key,
Object def)
protected void putPref(String key,
Object value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||