RingJavafor Ring

java.util.prefs

9 classes of the module java.prefs.

Load them with:

using {
	"java.util.prefs"
}

All packages

AbstractPreferences#

abstract · extends Preferences · java.util.prefs.AbstractPreferences

The methods and fields of Preferences are inherited.

BackingStoreException#

class · extends Exception · java.util.prefs.BackingStoreException

Constructors

new BackingStoreException(String s)
new BackingStoreException(Throwable cause)

Ring: new BackingStoreException(args) uses the constructor with the fewest parameters (at least one); new BackingStoreException makes the object with the constructor without parameters; the others: (new BackingStoreException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Exception are inherited.

InvalidPreferencesFormatException#

class · extends Exception · java.util.prefs.InvalidPreferencesFormatException

Constructors

new InvalidPreferencesFormatException(Throwable cause)
new InvalidPreferencesFormatException(String message)
new InvalidPreferencesFormatException(String message, Throwable cause)

Ring: new InvalidPreferencesFormatException(args) uses the constructor with the fewest parameters (at least one); new InvalidPreferencesFormatException makes the object with the constructor without parameters; the others: (new InvalidPreferencesFormatException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Exception are inherited.

NodeChangeEvent#

class · extends EventObject · java.util.prefs.NodeChangeEvent

Constructors

new NodeChangeEvent(Preferences parent, Preferences child)

Ring: new NodeChangeEvent(args) uses the constructor with the fewest parameters (at least one); new NodeChangeEvent makes the object with the constructor without parameters; the others: (new NodeChangeEvent).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getChildgetChild()Preferences getChild()
getParentgetParent()Preferences getParent()

The methods and fields of EventObject are inherited.

NodeChangeListener#

interface · java.util.prefs.NodeChangeListener

Extends: EventListener

Methods

MethodRing callJava overloads
childAddedchildAdded(evt)void childAdded(NodeChangeEvent evt)
childRemovedchildRemoved(evt)void childRemoved(NodeChangeEvent evt)

PreferenceChangeEvent#

class · extends EventObject · java.util.prefs.PreferenceChangeEvent

Constructors

new PreferenceChangeEvent(Preferences node, String key, String newValue)

Ring: new PreferenceChangeEvent(args) uses the constructor with the fewest parameters (at least one); new PreferenceChangeEvent makes the object with the constructor without parameters; the others: (new PreferenceChangeEvent).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getKeygetKey()String getKey()
getNewValuegetNewValue()String getNewValue()
getNodegetNode()Preferences getNode()

The methods and fields of EventObject are inherited.

PreferenceChangeListener#

interface · java.util.prefs.PreferenceChangeListener

Extends: EventListener

Methods

MethodRing callJava overloads
preferenceChangepreferenceChange(evt)void preferenceChange(PreferenceChangeEvent evt)

Preferences#

abstract · extends Object · java.util.prefs.Preferences

Fields

NameTypeAccessIn Ring
MAX_KEY_LENGTHintconstant · statico.MAX_KEY_LENGTH
MAX_VALUE_LENGTHintconstant · statico.MAX_VALUE_LENGTH
MAX_NAME_LENGTHintconstant · statico.MAX_NAME_LENGTH

Methods

MethodRing callJava overloads
@get@get(key,def)String get(String key, String def)
@put@put(key,value)void put(String key, String value)
absolutePathabsolutePath()String absolutePath()
addNodeChangeListeneraddNodeChangeListener(ncl)void addNodeChangeListener(NodeChangeListener ncl)
addPreferenceChangeListeneraddPreferenceChangeListener(pcl)void addPreferenceChangeListener(PreferenceChangeListener pcl)
childrenNameschildrenNames()String[] childrenNames()
clearclear()void clear()
exportNodeexportNode(os)void exportNode(OutputStream os)
exportSubtreeexportSubtree(os)void exportSubtree(OutputStream os)
flushflush()void flush()
getBooleangetBoolean(key,def)boolean getBoolean(String key, boolean def)
getByteArraygetByteArray(key,def)byte[] getByteArray(String key, byte[] def)
getDoublegetDouble(key,def)double getDouble(String key, double def)
getFloatgetFloat(key,def)float getFloat(String key, float def)
getIntgetInt(key,def)int getInt(String key, int def)
getLonggetLong(key,def)long getLong(String key, long def)
importPreferencesimportPreferences(is)static void importPreferences(InputStream is)
isUserNodeisUserNode()boolean isUserNode()
keyskeys()String[] keys()
namename()String name()
nodenode(pathName)Preferences node(String pathName)
nodeExistsnodeExists(pathName)boolean nodeExists(String pathName)
parentparent()Preferences parent()
putBooleanputBoolean(key,value)void putBoolean(String key, boolean value)
putByteArrayputByteArray(key,value)void putByteArray(String key, byte[] value)
putDoubleputDouble(key,value)void putDouble(String key, double value)
putFloatputFloat(key,value)void putFloat(String key, float value)
putIntputInt(key,value)void putInt(String key, int value)
putLongputLong(key,value)void putLong(String key, long value)
removeremove(key)void remove(String key)
removeNoderemoveNode()void removeNode()
removeNodeChangeListenerremoveNodeChangeListener(ncl)void removeNodeChangeListener(NodeChangeListener ncl)
removePreferenceChangeListenerremovePreferenceChangeListener(pcl)void removePreferenceChangeListener(PreferenceChangeListener pcl)
syncsync()void sync()
systemNodeForPackagesystemNodeForPackage(c)static Preferences systemNodeForPackage(Class c)
systemRootsystemRoot()static Preferences systemRoot()
userNodeForPackageuserNodeForPackage(c)static Preferences userNodeForPackage(Class c)
userRootuserRoot()static Preferences userRoot()

The methods and fields of Object are inherited.

PreferencesFactory#

interface · java.util.prefs.PreferencesFactory

Methods

MethodRing callJava overloads
systemRootsystemRoot()Preferences systemRoot()
userRootuserRoot()Preferences userRoot()
RingJava - use Java classes and methods from Ring programs.