Annotation Type OptionsPanelController.Keywords

Enclosing class:
OptionsPanelController

@Target(TYPE) @Retention(SOURCE) public static @interface OptionsPanelController.Keywords
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
    Modifier and Type
    Required Element
    Description
    Keywords for use with search inside the Options dialog.
    Keyword category for use with search inside the Options dialog.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional 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 the OptionsPanelController.SubRegistration.displayName().
  • Element Details

    • keywords

      String[] keywords
      Keywords 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 arrayKeywords
      { "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-textResult
      "boo"keyword found
      "nd"keyword found
      "boo and"keyword found
      "boo moo"keyword NOT found
    • location

      String location
      Keyword category for use with search inside the Options dialog. Location of this panel inside some top-level panel matching OptionsPanelController.ContainerRegistration.id() or OptionsPanelController.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 specify tabTitle()).
    • tabTitle

      String tabTitle
      Optional 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 the OptionsPanelController.SubRegistration.displayName(). You may use #key syntax.
      Default:
      ""