com.threerings.util
Class ToolUtil.EditablePrefs

java.lang.Object
  extended by com.threerings.util.ToolUtil.EditablePrefs
Enclosing class:
ToolUtil

public static class ToolUtil.EditablePrefs
extends Object

A simple editable object used to manipulate preferences.


Constructor Summary
ToolUtil.EditablePrefs(Preferences prefs)
          Creates a new editable prefs object using the specified underlying preferences.
 
Method Summary
 File getResourceDir()
          Returns the resource directory.
 void init(com.threerings.resource.ResourceManager rsrcmgr)
          Initializes the prefs with a reference to the resource manager.
 void setResourceDir(File dir)
          Sets the resource directory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolUtil.EditablePrefs

public ToolUtil.EditablePrefs(Preferences prefs)
Creates a new editable prefs object using the specified underlying preferences.

Method Detail

init

public void init(com.threerings.resource.ResourceManager rsrcmgr)
Initializes the prefs with a reference to the resource manager.


setResourceDir

@Editable(mode="directory",
          nullable=true)
public void setResourceDir(File dir)
Sets the resource directory.


getResourceDir

@Editable
public File getResourceDir()
Returns the resource directory.



Copyright © 2011. All Rights Reserved.