Class SearchField

  • All Implemented Interfaces:

    public class SearchField
    extends ViewerWidget
    implements DocumentPanelListener
    Create a widget that displays a Search field in the Toolbar. When activated, this widget will select or create a SearchPanel.Results and display the search results. The name of this feature is SearchField
    The following initialization parameters can be specified to configure this feature.
    regextrue or false for setUseRegex(boolean)

    This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.

    • Constructor Detail

      • SearchField

        public SearchField()
    • Method Detail

      • setUseRegex

        public void setUseRegex​(boolean regex)
        Set whether searches run through the Search Field created by this class use a regular-expression instead of a text value. The default is false.
        regex - whether to use a regular expression or not
      • setMerged

        public void setMerged​(boolean merged)
        Set whether to merge search results on a single page into one entry, which will highlight all results on that page when selected. By default this is set to false.
        merge - whether to merge the results as described