Class SearchPanel
- java.lang.Object
-
- org.apache.pdfbox.debugger.ui.textsearcher.SearchPanel
-
class SearchPanel extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JCheckBoxcaseSensitiveprivate javax.swing.ActioncloseActionprivate javax.swing.JLabelcounterLabelprivate javax.swing.ActionfindActionprivate javax.swing.ActionnextActionprivate javax.swing.JPanelpanelprivate javax.swing.ActionpreviousActionprivate javax.swing.JTextFieldsearchField
-
Constructor Summary
Constructors Constructor Description SearchPanel(javax.swing.event.DocumentListener documentListener, javax.swing.event.ChangeListener changeListener, java.awt.event.ComponentListener compListener, javax.swing.Action nextAction, javax.swing.Action previousAction)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMenuListeners(PDFDebugger frame)(package private) javax.swing.JPanelgetPanel()(package private) java.lang.StringgetSearchWord()private voidinitUI(javax.swing.event.DocumentListener documentListener, javax.swing.event.ChangeListener changeListener, java.awt.event.ComponentListener compListener)(package private) booleanisCaseSensitive()voidreFocus()voidremoveMenuListeners(PDFDebugger frame)(package private) voidreset()(package private) voidupdateCounterLabel(int now, int total)
-
-
-
Field Detail
-
nextAction
private final javax.swing.Action nextAction
-
previousAction
private final javax.swing.Action previousAction
-
caseSensitive
private javax.swing.JCheckBox caseSensitive
-
searchField
private javax.swing.JTextField searchField
-
counterLabel
private javax.swing.JLabel counterLabel
-
panel
private javax.swing.JPanel panel
-
closeAction
private final javax.swing.Action closeAction
-
findAction
private final javax.swing.Action findAction
-
-
Constructor Detail
-
SearchPanel
SearchPanel(javax.swing.event.DocumentListener documentListener, javax.swing.event.ChangeListener changeListener, java.awt.event.ComponentListener compListener, javax.swing.Action nextAction, javax.swing.Action previousAction)Constructor.- Parameters:
documentListener- DocumentListener instance.changeListener- ChangeListener instance.compListener- ComponentListener instance.nextAction- Action instance for next find.previousAction- Action instance for previous find.
-
-
Method Detail
-
initUI
private void initUI(javax.swing.event.DocumentListener documentListener, javax.swing.event.ChangeListener changeListener, java.awt.event.ComponentListener compListener)
-
isCaseSensitive
boolean isCaseSensitive()
-
getSearchWord
java.lang.String getSearchWord()
-
reset
void reset()
-
updateCounterLabel
void updateCounterLabel(int now, int total)
-
getPanel
javax.swing.JPanel getPanel()
-
reFocus
public void reFocus()
-
addMenuListeners
public void addMenuListeners(PDFDebugger frame)
-
removeMenuListeners
public void removeMenuListeners(PDFDebugger frame)
-
-