MCPcopy Create free account
hub / github.com/ArtifexSoftware/mupdf / onSearchStop

Method onSearchStop

platform/java/example/Viewer.java:2031–2044  ·  view source on GitHub ↗
(String needle, Location page)

Source from the content-addressed store, hash-verified

2029 searchStatusPanel.validate();
2030 }
2031 public void onSearchStop(String needle, Location page) {
2032 searchField.setEnabled(true);
2033 searchNextButton.setEnabled(true);
2034 searchPrevButton.setEnabled(true);
2035 if (page != null) {
2036 doc.gotoLocation(page, null);
2037 searchStatus.setText("");
2038 } else if (needle != null)
2039 searchStatus.setText("Search text not found.");
2040 else
2041 searchStatus.setText("");
2042 searchStatusPanel.validate();
2043 pageCanvas.requestFocusInWindow();
2044 }
2045 public void onSearchCancelled() {
2046 searchField.setEnabled(true);
2047 searchNextButton.setEnabled(true);

Callers

nothing calls this directly

Calls 1

gotoLocationMethod · 0.80

Tested by

no test coverage detected