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