Annotation Type OptionsPanelController.Keywords
- Enclosing class:
OptionsPanelController
Registers keywords for some panel in the Options dialog. Should be placed
on a
JPanel
instance.- Since:
- org.netbeans.modules.options.api/1 1.29
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionOptional title that must be used if the panel is part of a tabbed pane, such as when it is in the Editor, Fonts & Colors, Java, PHP, C/C++ or Miscellaneous categories, matching theOptionsPanelController.SubRegistration.displayName()
.
-
Element Details
-
keywords
String[] keywordsKeywords for use with search inside the Options dialog. You may use#key
syntax. The case in not important.Each entry in the provided array is split around comma character. For example:
Split examples showing array and keywords Provided array Keywords { "Boo", "fOo" } { "BOO", "FOO" }
{ "boo and", "foo" } { "BOO AND", "FOO" }
{ "boo,and", "foo" } { "BOO", "AND", "FOO" }
The user's search-text is split around the space character to form words. All words need to be present in a panel to yield a successful search. The registered keywords {"Boo,anD", "fOo"}, for example, yield the following results with these search-texts:
Search examples showing search-text and results User's search-text Result "boo" keyword found
"nd" keyword found
"boo and" keyword found
"boo moo" keyword NOT found
-
location
String locationKeyword category for use with search inside the Options dialog. Location of this panel inside some top-level panel matchingOptionsPanelController.ContainerRegistration.id()
orOptionsPanelController.SubRegistration.location()
. Typically this should be a reference to a compile-time constant also used for the container's ID. If the panel is in the Miscellaneous category you must also specifytabTitle()
). -
tabTitle
String tabTitleOptional title that must be used if the panel is part of a tabbed pane, such as when it is in the Editor, Fonts & Colors, Java, PHP, C/C++ or Miscellaneous categories, matching theOptionsPanelController.SubRegistration.displayName()
. You may use#key
syntax.- Default:
""
-