|
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.JXTable.TableSearchable
public class JXTable.TableSearchable
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 | |
---|---|
JXTable.TableSearchable()
|
Method Summary | |
---|---|
protected int |
adjustStartPosition(int startIndex,
boolean backwards)
Called if startIndex is different from last search, reset the column to -1 and make sure a backwards/forwards search starts at last/first row, respectively. |
protected SearchHighlighter |
createSearchHighlighter()
|
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,
int column)
Matches the cell content at row/col against the given Pattern. |
protected int |
getSize()
returns the size of this searchable. |
protected boolean |
isEqualStartIndex(int startIndex)
Checks if the startIndex is a candidate for trying a re-match. |
protected void |
moveMatchMarker()
Moves the match marker according to current found state. |
protected int |
moveStartPosition(int startRow,
boolean backwards)
Moves the internal start for matching as appropriate and returns the new startIndex to use. |
Methods inherited from class org.jdesktop.swingx.AbstractSearchable |
---|
createSearchResult, doSearch, isEmpty, isEqualPattern, isTrivialNoMatch, isValidIndex, 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 JXTable.TableSearchable()
Method Detail |
---|
protected void findMatchAndUpdateState(Pattern pattern, int startRow, boolean backwards)
AbstractSearchable
findMatchAndUpdateState
in class AbstractSearchable
pattern
- 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 beginningprotected AbstractSearchable.SearchResult findExtendedMatch(Pattern pattern, int row)
findExtendedMatch
in class AbstractSearchable
pattern
- row
-
SearchResult
if matching or nullprotected AbstractSearchable.SearchResult findMatchAt(Pattern pattern, int row, int column)
pattern
- row
- a valid row index in view coordinatescolumn
- a valid column index in view coordinates
SearchResult
if matching or nullprotected int adjustStartPosition(int startIndex, boolean backwards)
adjustStartPosition
in class AbstractSearchable
startIndex
- backwards
-
startIndex
protected int moveStartPosition(int startRow, boolean backwards)
moveStartPosition
in class AbstractSearchable
startRow
- backwards
-
protected boolean isEqualStartIndex(int startIndex)
isEqualStartIndex
in class AbstractSearchable
startIndex
-
protected int getSize()
AbstractSearchable
getSize
in class AbstractSearchable
protected void moveMatchMarker()
AbstractSearchable
moveMatchMarker
in class AbstractSearchable
protected SearchHighlighter createSearchHighlighter()
|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |