/** * Matches the cell content at row/col against the given Pattern. Returns an * appropriate SearchResult if matching or null if no matching * * @param pattern <code>Pattern</code> that we will try to locate * @param row a valid row index in view coordinates * @param column a valid column index in view coordinates * @return an appropriate <code>SearchResult</code> if matching or null */ protected SearchResult findMatchAt(Pattern pattern, int row, int column) { String text = table.getStringAt(row, column); if ((text != null) && (text.length() > 0)) { Matcher matcher = pattern.matcher(text); if (matcher.find()) { return createSearchResult(matcher, row, column); } } return null; }
/** * Matches the cell content at row/col against the given Pattern. Returns an * appropriate SearchResult if matching or null if no matching * * @param pattern <code>Pattern</code> that we will try to locate * @param row a valid row index in view coordinates * @param column a valid column index in view coordinates * @return an appropriate <code>SearchResult</code> if matching or null */ protected SearchResult findMatchAt(Pattern pattern, int row, int column) { String text = table.getStringAt(row, column); if ((text != null) && (text.length() > 0)) { Matcher matcher = pattern.matcher(text); if (matcher.find()) { return createSearchResult(matcher, row, column); } } return null; }
/** * Matches the cell content at row/col against the given Pattern. Returns an * appropriate SearchResult if matching or null if no matching * * @param pattern <code>Pattern</code> that we will try to locate * @param row a valid row index in view coordinates * @param column a valid column index in view coordinates * @return an appropriate <code>SearchResult</code> if matching or null */ protected SearchResult findMatchAt(Pattern pattern, int row, int column) { String text = table.getStringAt(row, column); if ((text != null) && (text.length() > 0)) { Matcher matcher = pattern.matcher(text); if (matcher.find()) { return createSearchResult(matcher, row, column); } } return null; }
/** * Matches the cell content at row/col against the given Pattern. Returns an * appropriate SearchResult if matching or null if no matching * * @param pattern <code>Pattern</code> that we will try to locate * @param row a valid row index in view coordinates * @param column a valid column index in view coordinates * @return an appropriate <code>SearchResult</code> if matching or null */ protected SearchResult findMatchAt(Pattern pattern, int row, int column) { String text = table.getStringAt(row, column); if ((text != null) && (text.length() > 0)) { Matcher matcher = pattern.matcher(text); if (matcher.find()) { return createSearchResult(matcher, row, column); } } return null; }
/** * Matches the cell content at row/col against the given Pattern. Returns an * appropriate SearchResult if matching or null if no matching * * @param pattern <code>Pattern</code> that we will try to locate * @param row a valid row index in view coordinates * @param column a valid column index in view coordinates * @return an appropriate <code>SearchResult</code> if matching or null */ protected SearchResult findMatchAt(Pattern pattern, int row, int column) { String text = table.getStringAt(row, column); if ((text != null) && (text.length() > 0)) { Matcher matcher = pattern.matcher(text); if (matcher.find()) { return createSearchResult(matcher, row, column); } } return null; }