/** * {@inheritDoc} <p> * * Overridden to cope with sorting/filtering, taking over completely. */ @Override public int getNextMatch(String prefix, int startIndex, Bias bias) { Pattern pattern = Pattern.compile("^" + prefix, Pattern.CASE_INSENSITIVE); return getSearchable().search(pattern, startIndex, bias ==Bias.Backward); } //--------------------- Rollover support
/** * {@inheritDoc} <p> * * Overridden to cope with sorting/filtering, taking over completely. */ @Override public int getNextMatch(String prefix, int startIndex, Bias bias) { Pattern pattern = Pattern.compile("^" + prefix, Pattern.CASE_INSENSITIVE); return getSearchable().search(pattern, startIndex, bias ==Bias.Backward); } //--------------------- Rollover support
/** * {@inheritDoc} <p> * * Overridden to cope with sorting/filtering, taking over completely. */ @Override public int getNextMatch(String prefix, int startIndex, Bias bias) { Pattern pattern = Pattern.compile("^" + prefix, Pattern.CASE_INSENSITIVE); return getSearchable().search(pattern, startIndex, bias ==Bias.Backward); } //--------------------- Rollover support
/** * {@inheritDoc} <p> * * Overridden to cope with sorting/filtering, taking over completely. */ @Override public int getNextMatch(String prefix, int startIndex, Bias bias) { Pattern pattern = Pattern.compile("^" + prefix, Pattern.CASE_INSENSITIVE); return getSearchable().search(pattern, startIndex, bias ==Bias.Backward); } //--------------------- Rollover support
/** * Overridden to respect the string representation, if any. This takes over * completely (as compared to super), internally messaging the Searchable. * <p> * * PENDING JW: re-visit once we support deep node search. * */ @Override public TreePath getNextMatch(String prefix, int startingRow, Bias bias) { Pattern pattern = Pattern.compile("^" + prefix, Pattern.CASE_INSENSITIVE); int row = getSearchable().search(pattern, startingRow, bias ==Bias.Backward); return getPathForRow(row); }
/** * Overridden to respect the string representation, if any. This takes over * completely (as compared to super), internally messaging the Searchable. * <p> * * PENDING JW: re-visit once we support deep node search. * */ @Override public TreePath getNextMatch(String prefix, int startingRow, Bias bias) { Pattern pattern = Pattern.compile("^" + prefix, Pattern.CASE_INSENSITIVE); int row = getSearchable().search(pattern, startingRow, bias ==Bias.Backward); return getPathForRow(row); }
/** * Overridden to respect the string representation, if any. This takes over * completely (as compared to super), internally messaging the Searchable. * <p> * * PENDING JW: re-visit once we support deep node search. * */ @Override public TreePath getNextMatch(String prefix, int startingRow, Bias bias) { Pattern pattern = Pattern.compile("^" + prefix, Pattern.CASE_INSENSITIVE); int row = getSearchable().search(pattern, startingRow, bias ==Bias.Backward); return getPathForRow(row); }
/** * Overridden to respect the string representation, if any. This takes over * completely (as compared to super), internally messaging the Searchable. * <p> * * PENDING JW: re-visit once we support deep node search. * */ @Override public TreePath getNextMatch(String prefix, int startingRow, Bias bias) { Pattern pattern = Pattern.compile("^" + prefix, Pattern.CASE_INSENSITIVE); int row = getSearchable().search(pattern, startingRow, bias ==Bias.Backward); return getPathForRow(row); }
/** * Sets the Searchable targeted of this find widget. * Triggers a search with null pattern to release the old * searchable, if any. * * @param searchable Component where search widget will try to locate and select * information using methods of the {@link Searchable Searchable} interface. */ public void setSearchable(Searchable searchable) { if ((this.searchable != null) && this.searchable.equals(searchable)) return; Searchable old = this.searchable; if (old != null) { old.search((Pattern) null); } this.searchable = searchable; getPatternModel().setFoundIndex(-1); firePropertyChange("searchable", old, this.searchable); }
/** * Sets the Searchable targeted of this find widget. * Triggers a search with null pattern to release the old * searchable, if any. * * @param searchable Component where search widget will try to locate and select * information using methods of the {@link Searchable Searchable} interface. */ public void setSearchable(Searchable searchable) { if ((this.searchable != null) && this.searchable.equals(searchable)) return; Searchable old = this.searchable; if (old != null) { old.search((Pattern) null); } this.searchable = searchable; getPatternModel().setFoundIndex(-1); firePropertyChange("searchable", old, this.searchable); }
/** * Sets the Searchable targeted of this find widget. * Triggers a search with null pattern to release the old * searchable, if any. * * @param searchable Component where search widget will try to locate and select * information using methods of the {@link Searchable Searchable} interface. */ public void setSearchable(Searchable searchable) { if ((this.searchable != null) && this.searchable.equals(searchable)) return; Searchable old = this.searchable; if (old != null) { old.search((Pattern) null); } this.searchable = searchable; getPatternModel().setFoundIndex(-1); firePropertyChange("searchable", old, this.searchable); }
/** * Sets the Searchable targeted of this find widget. * Triggers a search with null pattern to release the old * searchable, if any. * * @param searchable Component where search widget will try to locate and select * information using methods of the {@link Searchable Searchable} interface. */ public void setSearchable(Searchable searchable) { if ((this.searchable != null) && this.searchable.equals(searchable)) return; Searchable old = this.searchable; if (old != null) { old.search((Pattern) null); } this.searchable = searchable; getPatternModel().setFoundIndex(-1); firePropertyChange("searchable", old, this.searchable); }
/** * Sets the Searchable targeted of this find widget. * Triggers a search with null pattern to release the old * searchable, if any. * * @param searchable Component where search widget will try to locate and select * information using methods of the {@link Searchable Searchable} interface. */ public void setSearchable(Searchable searchable) { if ((this.searchable != null) && this.searchable.equals(searchable)) return; Searchable old = this.searchable; if (old != null) { old.search((Pattern) null); } this.searchable = searchable; getPatternModel().setFoundIndex(-1); firePropertyChange("searchable", old, this.searchable); }
/** * Performs search and returns index of the next match. * * @return Index of the next match in document. */ protected int doSearch() { int foundIndex = searchable.search(getPatternModel().getPattern(), getPatternModel().getFoundIndex(), getPatternModel().isBackwards()); getPatternModel().setFoundIndex(foundIndex); return getPatternModel().getFoundIndex(); // first try on #236-swingx - foundIndex wrong in backwards search. // re-think: autoIncrement in PatternModel? // return foundIndex; }
/** * Performs search and returns index of the next match. * * @return Index of the next match in document. */ protected int doSearch() { int foundIndex = searchable.search(getPatternModel().getPattern(), getPatternModel().getFoundIndex(), getPatternModel().isBackwards()); getPatternModel().setFoundIndex(foundIndex); return getPatternModel().getFoundIndex(); // first try on #236-swingx - foundIndex wrong in backwards search. // re-think: autoIncrement in PatternModel? // return foundIndex; }
/** * Performs search and returns index of the next match. * * @return Index of the next match in document. */ protected int doSearch() { int foundIndex = searchable.search(getPatternModel().getPattern(), getPatternModel().getFoundIndex(), getPatternModel().isBackwards()); getPatternModel().setFoundIndex(foundIndex); return getPatternModel().getFoundIndex(); // first try on #236-swingx - foundIndex wrong in backwards search. // re-think: autoIncrement in PatternModel? // return foundIndex; }
/** * Performs search and returns index of the next match. * * @return Index of the next match in document. */ protected int doSearch() { int foundIndex = searchable.search(getPatternModel().getPattern(), getPatternModel().getFoundIndex(), getPatternModel().isBackwards()); getPatternModel().setFoundIndex(foundIndex); return getPatternModel().getFoundIndex(); // first try on #236-swingx - foundIndex wrong in backwards search. // re-think: autoIncrement in PatternModel? // return foundIndex; }
/** * Performs search and returns index of the next match. * * @return Index of the next match in document. */ protected int doSearch() { int foundIndex = searchable.search(getPatternModel().getPattern(), getPatternModel().getFoundIndex(), getPatternModel().isBackwards()); getPatternModel().setFoundIndex(foundIndex); return getPatternModel().getFoundIndex(); // first try on #236-swingx - foundIndex wrong in backwards search. // re-think: autoIncrement in PatternModel? // return foundIndex; }