站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

NbPreferences (Utilities API) - NetBeans API Javadoc (Current Development Version)

org.openide.util 7.9.0 1

org.openide.util
Class NbPreferences

java.lang.Object
  extended by org.openide.util.NbPreferences

public final class NbPreferences
extends Object

Provides an implementation of the Preferences API which may be backed by a NetBeans-specific implementation.

Since:
org.openide.util 7.4
See Also:
Preferences API in NetBeans

Method Summary
static Preferences forModule(Class cls)
          Returns user preference node .
static Preferences root()
          Returns the root preference node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forModule

public static Preferences forModule(Class cls)
Returns user preference node . Preferences.absolutePath() of such a node depends whether class provided as a parameter was loaded as a part of any module or not. If so, then absolute path corresponds to slashified code name base of module. If not, then absolute path corresponds to class's package.

Parameters:
cls - the class for which a user preference node is desired.
Returns:
the user preference node

root

public static Preferences root()
Returns the root preference node.

Returns:
the root preference node.

org.openide.util 7.9.0 1

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.