org.jdesktop.swingx
Class JXTree.TreeSearchable
java.lang.Object
org.jdesktop.swingx.AbstractSearchable
org.jdesktop.swingx.JXTree.TreeSearchable
- All Implemented Interfaces:
- Searchable
- Enclosing class:
- JXTree
public class JXTree.TreeSearchable
- extends AbstractSearchable
A searchable targetting the visible rows of a JXTree.
PENDING: value to string conversion should behave as nextMatch (?) which
uses the convertValueToString().
Methods inherited from class org.jdesktop.swingx.AbstractSearchable |
adjustStartPosition, createSearchResult, doSearch, isEmpty, isEqualPattern, isEqualStartIndex, isTrivialNoMatch, isValidIndex, moveStartPosition, search, search, search, search, search, search, updateState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JXTree.TreeSearchable
public JXTree.TreeSearchable()
findMatchAndUpdateState
protected void findMatchAndUpdateState(java.util.regex.Pattern pattern,
int startRow,
boolean backwards)
- Description copied from class:
AbstractSearchable
- loops through the searchable until a match is found or the
end is reached. Updates internal search state.
- Specified by:
findMatchAndUpdateState
in class AbstractSearchable
findExtendedMatch
protected AbstractSearchable.SearchResult findExtendedMatch(java.util.regex.Pattern pattern,
int row)
- Description copied from class:
AbstractSearchable
- called if sameRowIndex && !hasEqualRegEx.
Matches the cell at row/lastFoundColumn against the pattern.
PRE: lastFoundColumn valid.
- Specified by:
findExtendedMatch
in class AbstractSearchable
- Returns:
findMatchAt
protected AbstractSearchable.SearchResult findMatchAt(java.util.regex.Pattern pattern,
int row)
- Matches the cell content at row/col against the given Pattern.
Returns an appropriate SearchResult if matching or null if no
matching
- Parameters:
pattern
- row
- a valid row index in view coordinatescolumn
- a valid column index in view coordinates
- Returns:
getSize
protected int getSize()
- Description copied from class:
AbstractSearchable
- returns the size of this searchable.
- Specified by:
getSize
in class AbstractSearchable
- Returns:
moveMatchMarker
protected void moveMatchMarker()
- Description copied from class:
AbstractSearchable
- Moves the match marker according to current found state.
- Specified by:
moveMatchMarker
in class AbstractSearchable
Copyright © 2005 Sun Microsystems All Rights Reserved.