|
swingx Version 2005-08-19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.AbstractSearchable
org.jdesktop.swingx.JXTree.TreeSearchable
public class JXTree.TreeSearchable
A searchable targetting the visible rows of a JXTree. PENDING: value to string conversion should behave as nextMatch (?) which uses the convertValueToString().
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jdesktop.swingx.AbstractSearchable |
|---|
AbstractSearchable.SearchResult |
| Field Summary |
|---|
| Fields inherited from class org.jdesktop.swingx.AbstractSearchable |
|---|
lastSearchResult, MATCH_HIGHLIGHTER, NO_MATCH |
| Constructor Summary | |
|---|---|
JXTree.TreeSearchable()
|
|
| Method Summary | |
|---|---|
protected AbstractSearchable.SearchResult |
findExtendedMatch(Pattern pattern,
int row)
called if sameRowIndex && ! |
protected void |
findMatchAndUpdateState(Pattern pattern,
int startRow,
boolean backwards)
Loops through the searchable until a match is found or the end is reached. |
protected AbstractSearchable.SearchResult |
findMatchAt(Pattern pattern,
int row)
Matches the cell content at row/col against the given Pattern. |
protected int |
getSize()
returns the size of this searchable. |
protected void |
moveMatchMarker()
Moves the match marker according to current found state. |
| 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 |
| Constructor Detail |
|---|
public JXTree.TreeSearchable()
| Method Detail |
|---|
protected void findMatchAndUpdateState(Pattern pattern,
int startRow,
boolean backwards)
AbstractSearchable
findMatchAndUpdateState in class AbstractSearchablepattern - Pattern that we will try to locatestartRow - position in the document in the appropriate coordinates
from which we will start search or -1 to start from the beginningbackwards - true if we should perform search towards the beginning
protected AbstractSearchable.SearchResult findExtendedMatch(Pattern pattern,
int row)
AbstractSearchable
findExtendedMatch in class AbstractSearchablepattern - Pattern that we will try to matchrow - position at which we will get the value to match with the provided Pattern
AbstractSearchable.SearchResult
protected AbstractSearchable.SearchResult findMatchAt(Pattern pattern,
int row)
pattern - row - a valid row index in view coordinates
a valid column index in view coordinates
SearchResult if matching or
null if no matchingprotected int getSize()
AbstractSearchable
getSize in class AbstractSearchableprotected void moveMatchMarker()
AbstractSearchable
moveMatchMarker in class AbstractSearchable
|
swingx Version 2005-08-19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||