textbender.g.util.prefs
Class PreferencesX

java.lang.Object
  extended by PreferencesX

public class PreferencesX
extends Object

Preferences utilities.


Method Summary
static Preferences childNodeForClass(Preferences parent, Class<?> c)
          Returns the child node that is associated (by convention) with the specified class.
static Preferences userNodeForClass(Class<?> c)
          Returns the preference node from the calling user's preference tree that is associated (by convention) with the specified class.
static Preferences userNodeForClass(Class<?> c, boolean allowDummyPreferences)
          Returns the preference node from the calling user's preference tree that is associated (by convention) with the specified class.
static Preferences userNodeForPackage(Class<?> c, boolean allowDummyPreferences)
          Returns the preference node from the calling user's preference tree that is associated (by convention) with the specified class's package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

childNodeForClass

public static Preferences childNodeForClass(Preferences parent,
                                            Class<?> c)
Returns the child node that is associated (by convention) with the specified class.


userNodeForClass

public static Preferences userNodeForClass(Class<?> c)
Returns the preference node from the calling user's preference tree that is associated (by convention) with the specified class.


userNodeForClass

public static Preferences userNodeForClass(Class<?> c,
                                           boolean allowDummyPreferences)
Returns the preference node from the calling user's preference tree that is associated (by convention) with the specified class.

Parameters:
allowDummyPreferences - if true, and if a security exception prevents access to the requested preferences node, then a Preferences0 node is returned instead

userNodeForPackage

public static Preferences userNodeForPackage(Class<?> c,
                                             boolean allowDummyPreferences)
Returns the preference node from the calling user's preference tree that is associated (by convention) with the specified class's package. Same as Preferences.userNodeForPackage, but may allow a dummy node to be returned.

Parameters:
allowDummyPreferences - if true, and if a security exception prevents access to the requested preferences node, then a Preferences0 node is returned instead