public abstract class OptionsCategory
extends java.lang.Object
Normally panels are registered using one of the annotations in OptionsPanelController.
They may also be registered in a layer manually as follows:
<folder name="OptionsDialog">
<file name="General.instance">
<attr name="instanceCreate" methodvalue="org.netbeans.spi.options.OptionsCategory.createCategory"/>
<attr name="title" bundlevalue="org.netbeans.core.ui.options.general.Bundle#CTL_General_Options_Title"/>
<attr name="categoryName" bundlevalue="org.netbeans.core.ui.options.general.Bundle#CTL_General_Options"/>
<attr name="iconBase" stringvalue="org/netbeans/modules/options/resources/generalOptions.png"/>
<attr name="controller" newvalue="org.netbeans.core.ui.options.general.GeneralOptionsPanelController"/>
<attr name="keywords" bundlevalue="org.netbeans.core.ui.options.general.Bundle#KW_General"/>
<attr name="keywordsCategory" stringvalue="General"/>
<attr name="description" bundlevalue="org.netbeans.core.ui.options.general.Bundle#CTL_General_Options_Description"/>
<attr name="position" intvalue="100"/>
</file>
</folder>
where:
OptionsPanelController
<attr name="controller" newvalue="org.netbeans.core.ui.options.general.GeneralOptionsPanelController"/>
there is an option to use
<attr name="advancedOptionsFolder" stringvalue="OptionsDialog/JavaOptions"/>
and supply a folder where instaces of AdvancedOption should be
registered. Its instances would be found automatically and shown as sub-panels
position attributes to sort items registered in layers.AdvancedOption,
OptionsPanelController| Constructor | Description |
|---|---|
OptionsCategory() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract OptionsPanelController |
create() |
Returns new
OptionsPanelController for this category. |
abstract java.lang.String |
getCategoryName() |
Returns name of category used in list on the top side of
Options Dialog.
|
javax.swing.Icon |
getIcon() |
Returns 32x32 icon used in list on the top of
Options Dialog.
|
java.lang.String |
getIconBase() |
Deprecated.
This method will not be a part of NB50! Use
getIcon() instead. |
abstract java.lang.String |
getTitle() |
This text will be used in title component on the top of Options Dialog
when your panel will be selected.
|
public java.lang.String getIconBase()
getIcon() instead.AbstractNode.setIconBase(java.lang.String) method for more info.public javax.swing.Icon getIcon()
public abstract java.lang.String getCategoryName()
public abstract java.lang.String getTitle()
Currently unused.
public abstract OptionsPanelController create()
OptionsPanelController for this category. PanelController
creates visual component to be used inside of the Options Dialog.
You should not do any time-consuming operations inside
the constructor, because it blocks initialization of OptionsDialog.
Initialization should be implemented in update method.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.