public void setBackwards(boolean backwards) { boolean old = isBackwards(); this.backwards = backwards; firePropertyChange("backwards", old, isBackwards()); setFoundIndex(getFoundIndex()); }
public void setBackwards(boolean backwards) { boolean old = isBackwards(); this.backwards = backwards; firePropertyChange("backwards", old, isBackwards()); setFoundIndex(getFoundIndex()); }
public void setBackwards(boolean backwards) { boolean old = isBackwards(); this.backwards = backwards; firePropertyChange("backwards", old, isBackwards()); setFoundIndex(getFoundIndex()); }
public void setBackwards(boolean backwards) { boolean old = isBackwards(); this.backwards = backwards; firePropertyChange("backwards", old, isBackwards()); setFoundIndex(getFoundIndex()); }
public void setBackwards(boolean backwards) { boolean old = isBackwards(); this.backwards = backwards; firePropertyChange("backwards", old, isBackwards()); setFoundIndex(getFoundIndex()); }
/** * creates actions bound to PatternModel's state. */ protected void initPatternActions() { ActionMap map = getActionMap(); map.put(PatternModel.MATCH_CASE_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_CASE_ACTION_COMMAND, "setCaseSensitive", getPatternModel().isCaseSensitive())); map.put(PatternModel.MATCH_WRAP_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_WRAP_ACTION_COMMAND, "setWrapping", getPatternModel().isWrapping())); map.put(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND, "setBackwards", getPatternModel().isBackwards())); map.put(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND, "setIncremental", getPatternModel().isIncremental())); }
/** * creates actions bound to PatternModel's state. */ protected void initPatternActions() { ActionMap map = getActionMap(); map.put(PatternModel.MATCH_CASE_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_CASE_ACTION_COMMAND, "setCaseSensitive", getPatternModel().isCaseSensitive())); map.put(PatternModel.MATCH_WRAP_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_WRAP_ACTION_COMMAND, "setWrapping", getPatternModel().isWrapping())); map.put(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND, "setBackwards", getPatternModel().isBackwards())); map.put(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND, "setIncremental", getPatternModel().isIncremental())); }
/** * creates actions bound to PatternModel's state. */ protected void initPatternActions() { ActionMap map = getActionMap(); map.put(PatternModel.MATCH_CASE_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_CASE_ACTION_COMMAND, "setCaseSensitive", getPatternModel().isCaseSensitive())); map.put(PatternModel.MATCH_WRAP_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_WRAP_ACTION_COMMAND, "setWrapping", getPatternModel().isWrapping())); map.put(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND, "setBackwards", getPatternModel().isBackwards())); map.put(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND, "setIncremental", getPatternModel().isIncremental())); }
/** * creates actions bound to PatternModel's state. */ protected void initPatternActions() { ActionMap map = getActionMap(); map.put(PatternModel.MATCH_CASE_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_CASE_ACTION_COMMAND, "setCaseSensitive", getPatternModel().isCaseSensitive())); map.put(PatternModel.MATCH_WRAP_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_WRAP_ACTION_COMMAND, "setWrapping", getPatternModel().isWrapping())); map.put(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND, "setBackwards", getPatternModel().isBackwards())); map.put(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND, "setIncremental", getPatternModel().isIncremental())); }
/** * creates actions bound to PatternModel's state. */ protected void initPatternActions() { ActionMap map = getActionMap(); map.put(PatternModel.MATCH_CASE_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_CASE_ACTION_COMMAND, "setCaseSensitive", getPatternModel().isCaseSensitive())); map.put(PatternModel.MATCH_WRAP_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_WRAP_ACTION_COMMAND, "setWrapping", getPatternModel().isWrapping())); map.put(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND, "setBackwards", getPatternModel().isBackwards())); map.put(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND, createModelStateAction(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND, "setIncremental", getPatternModel().isIncremental())); }
/** * 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; }