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

AllOptionsFolder (Editor Module) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor/3 1.32.0

org.netbeans.modules.editor.options
Class AllOptionsFolder

java.lang.Object
  extended by org.netbeans.modules.editor.options.AllOptionsFolder

public class AllOptionsFolder
extends Object

Editor Settings main node folder. In this folder are stored global options such as global keybindings. Mime options are lazily initialized after loading appropriate kit (NbEditorKit.java) or after request of Option window to show the properties. Initialization starts with loading user's setting from XML files and then initializer is added to Settings and reseted.

Since:
08/2001

Field Summary
static String FOLDER
          folder for Editor Settings main node
static String OPTION_FILE_NAME
           
 
Method Summary
 boolean baseInitialized()
          Returns true if BaseOptions has been initialized
protected  BaseOptions getBO(InstanceCookie ic)
          Gets the instance of BaseOptions from InstanceCookie
static AllOptionsFolder getDefault()
          Creates the only instance of AllOptionsFolder.
 List getInstalledOptions()
          Returns list of installed Options.
 List getKeyBindingList()
          Getter for KeyBingings
 boolean getLineNumberVisible()
           
 MIMEOptionFolder getMIMEFolder()
          Gets the singleton of global options MIME folder
 boolean isTextAntialiasing()
           
 boolean isToolbarVisible()
           
protected  void loadDefaultKeyBindings()
          Loads default global keyBindings List and initializes it.
 void loadMIMEOption(Class kitClass)
          Deprecated. See loadMimeOption(Class, boolean) for details.
 void loadMIMEOption(Class kitClass, boolean processOldTypeOption)
          Deprecated. There is no reason you should call this method. It should have never been made public. Use MimeLookup.getLookup(MimePath.parse(your-mime-type)).lookup(BaseOptions.class) for accessing BaseOptions for your mime type.
 void setKeyBindingList(List list)
          Setter for KeyBindings
 void setLineNumberVisible(boolean lineVisible)
           
 void setTextAntialiasing(boolean textAntialiasing)
           
 void setToolbarVisible(boolean toolbarVisible)
           
static void unregisterModuleRegListener()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOLDER

public static final String FOLDER
folder for Editor Settings main node

See Also:
Constant Field Values

OPTION_FILE_NAME

public static final String OPTION_FILE_NAME
See Also:
Constant Field Values
Method Detail

getMIMEFolder

public MIMEOptionFolder getMIMEFolder()
Gets the singleton of global options MIME folder


getInstalledOptions

public List getInstalledOptions()
Returns list of installed Options. Values = options classes


unregisterModuleRegListener

public static void unregisterModuleRegListener()

getDefault

public static AllOptionsFolder getDefault()
Creates the only instance of AllOptionsFolder.


getKeyBindingList

public List getKeyBindingList()
Getter for KeyBingings


setKeyBindingList

public void setKeyBindingList(List list)
Setter for KeyBindings


isToolbarVisible

public boolean isToolbarVisible()

setToolbarVisible

public void setToolbarVisible(boolean toolbarVisible)

getLineNumberVisible

public boolean getLineNumberVisible()

setLineNumberVisible

public void setLineNumberVisible(boolean lineVisible)

isTextAntialiasing

public boolean isTextAntialiasing()

setTextAntialiasing

public void setTextAntialiasing(boolean textAntialiasing)

loadDefaultKeyBindings

protected void loadDefaultKeyBindings()
Loads default global keyBindings List and initializes it. It is used mainly by other options for initializing global keyBindings


baseInitialized

public boolean baseInitialized()
Returns true if BaseOptions has been initialized


getBO

protected BaseOptions getBO(InstanceCookie ic)
Gets the instance of BaseOptions from InstanceCookie


loadMIMEOption

public void loadMIMEOption(Class kitClass)
Deprecated. See loadMimeOption(Class, boolean) for details.

Lazily inits MIME Option class. Calls loadMIMEOption(kitClass, true).

Parameters:
kitClass - The editor kit class you want to load options for.

loadMIMEOption

public void loadMIMEOption(Class kitClass,
                           boolean processOldTypeOption)
Deprecated. There is no reason you should call this method. It should have never been made public. Use MimeLookup.getLookup(MimePath.parse(your-mime-type)).lookup(BaseOptions.class) for accessing BaseOptions for your mime type.

Lazily inits MIME Option class. If processOldTypeOption is true initializers for this option will be processed.

Parameters:
kitClass - The editor kit class you want to load options for.
processOldTypeOptions - Internal magic, if you really want to call this method, you should probably set this to true.

org.netbeans.modules.editor/3 1.32.0

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