/** * {@inheritDoc} * <p> * * Overridden to check the column index of last find. */ @Override protected boolean isEqualStartIndex(final int startIndex) { return super.isEqualStartIndex(startIndex) && isValidColumn(lastSearchResult.foundColumn); }
/** * Sets the default search type to incremental or batch, for a * true/false boolean. The default value is false (== batch). * * @param incremental a boolean to indicate the default search * type, true for incremental and false for batch. */ public void setUseFindBar(boolean incremental) { if (incremental == useFindBar) return; this.useFindBar = incremental; getFindRemover().endSearching(); }
protected void installFindRemover(Container target, Container findWidget) { if (target != null) { getFindRemover().addTarget(target); } getFindRemover().addTarget(findWidget); }
final PatternModel model = new PatternModel(); model.setMatchRule(PatternModel.MATCH_RULE_STARTSWITH); model.addPropertyChangeListener(modelListener); popup.show(field, 0, field.getHeight()); model.setRawText(field.getText());
/** * returns a regEx for compilation into a pattern. Here: either a "contains" * (== partial find) or null if the input was empty. * * @param searchString * @return null if the input was empty, or a regex according to the internal * rules */ private String createRegEx(String searchString) { if (isEmpty(searchString)) return null; //".*"; return getRegexCreator().createRegEx(searchString); }
/** * Creates a new popup menu based on the given {@link RecentSearches} * and {@link JXSearchField}. * * @param recentSearches * @param searchField */ public RecentSearchesPopup(RecentSearches recentSearches, JTextField searchField) { this.searchField = searchField; this.recentSearches = recentSearches; recentSearches.addChangeListener(this); buildMenu(); }
/** * {@inheritDoc} * <p> * * Overridden to check the column index of last find. */ @Override protected boolean isEqualStartIndex(final int startIndex) { return super.isEqualStartIndex(startIndex) && isValidColumn(lastSearchResult.foundColumn); }
/** * Sets the default search type to incremental or batch, for a * true/false boolean. The default value is false (== batch). * * @param incremental a boolean to indicate the default search * type, true for incremental and false for batch. */ public void setUseFindBar(boolean incremental) { if (incremental == useFindBar) return; this.useFindBar = incremental; getFindRemover().endSearching(); }
protected void installFindRemover(Container target, Container findWidget) { if (target != null) { getFindRemover().addTarget(target); } getFindRemover().addTarget(findWidget); }
/** * returns a regEx for compilation into a pattern. Here: either a "contains" * (== partial find) or null if the input was empty. * * @param searchString * @return null if the input was empty, or a regex according to the internal * rules */ private String createRegEx(String searchString) { if (isEmpty(searchString)) return null; //".*"; return getRegexCreator().createRegEx(searchString); }
/** * Creates a new popup menu based on the given {@link RecentSearches} * and {@link JXSearchField}. * * @param recentSearches * @param searchField */ public RecentSearchesPopup(RecentSearches recentSearches, JTextField searchField) { this.searchField = searchField; this.recentSearches = recentSearches; recentSearches.addChangeListener(this); buildMenu(); }
/** * {@inheritDoc} * <p> * * Overridden to check the column index of last find. */ @Override protected boolean isEqualStartIndex(final int startIndex) { return super.isEqualStartIndex(startIndex) && isValidColumn(lastSearchResult.foundColumn); }
/** * Sets the default search type to incremental or batch, for a * true/false boolean. The default value is false (== batch). * * @param incremental a boolean to indicate the default search * type, true for incremental and false for batch. */ public void setUseFindBar(boolean incremental) { if (incremental == useFindBar) return; this.useFindBar = incremental; getFindRemover().endSearching(); }
protected void installFindRemover(Container target, Container findWidget) { if (target != null) { getFindRemover().addTarget(target); } getFindRemover().addTarget(findWidget); }
/** * {@inheritDoc} * <p> * * Overridden to check the column index of last find. */ @Override protected boolean isEqualStartIndex(final int startIndex) { return super.isEqualStartIndex(startIndex) && isValidColumn(lastSearchResult.foundColumn); }
/** * Sets the default search type to incremental or batch, for a * true/false boolean. The default value is false (== batch). * * @param incremental a boolean to indicate the default search * type, true for incremental and false for batch. */ public void setUseFindBar(boolean incremental) { if (incremental == useFindBar) return; this.useFindBar = incremental; getFindRemover().endSearching(); }
protected void installFindRemover(Container target, Container findWidget) { if (target != null) { getFindRemover().addTarget(target); } getFindRemover().addTarget(findWidget); }
/** * {@inheritDoc} * <p> * * Overridden to check the column index of last find. */ @Override protected boolean isEqualStartIndex(final int startIndex) { return super.isEqualStartIndex(startIndex) && isValidColumn(lastSearchResult.foundColumn); }
/** * Sets the default search type to incremental or batch, for a * true/false boolean. The default value is false (== batch). * * @param incremental a boolean to indicate the default search * type, true for incremental and false for batch. */ public void setUseFindBar(boolean incremental) { if (incremental == useFindBar) return; this.useFindBar = incremental; getFindRemover().endSearching(); }
protected void installFindRemover(Container target, Container findWidget) { if (target != null) { getFindRemover().addTarget(target); } getFindRemover().addTarget(findWidget); }