public class SearchField extends ViewerWidget implements DocumentPanelListener
SearchPanel.Results
and display the search results.
The name of this feature is SearchField
regex | true 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 and Description |
---|
SearchField() |
Modifier and Type | Method and Description |
---|---|
void |
documentUpdated(DocumentPanelEvent event)
Called when an
DocumentPanelEvent is raised |
void |
initialize(PDFViewer viewer)
Called when the feature is first added to a viewer
|
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.
|
action, createActionListener, getComponent, getIcon, getViewer, isButtonEnabledByDefault, isDocumentRequired, isMenuEnabledByDefault, setButton, setComponent, setDocumentRequired, setMenu, setMenu, setToolBarEnabled, setToolBarEnabledAlways, setToolBarFloatable, setToolBarFloating, toString
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown
public void initialize(PDFViewer viewer)
ViewerFeature
initialize
in class ViewerWidget
public void setUseRegex(boolean regex)
regex
- whether to use a regular expression or notpublic void documentUpdated(DocumentPanelEvent event)
DocumentPanelListener
DocumentPanelEvent
is raiseddocumentUpdated
in interface DocumentPanelListener
Copyright © 2001-2017 Big Faceless Organization