public abstract class OptionsCategory extends 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 and Description |
---|
OptionsCategory() |
Modifier and Type | Method and Description |
---|---|
abstract OptionsPanelController |
create()
Returns new
OptionsPanelController for this category. |
abstract String |
getCategoryName()
Returns name of category used in list on the top side of
Options Dialog.
|
Icon |
getIcon()
Returns 32x32 icon used in list on the top of
Options Dialog.
|
String |
getIconBase()
Deprecated.
This method will not be a part of NB50! Use
OptionsCategory.getIcon() instead. |
abstract String |
getTitle()
This text will be used in title component on the top of Options Dialog
when your panel will be selected.
|
@Deprecated public String getIconBase()
OptionsCategory.getIcon()
instead.AbstractNode.setIconBase(java.lang.String)
method for more info.public Icon getIcon()
public abstract String getCategoryName()
public abstract 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.