|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.search.AbstractSearchable.SearchResult
public static class AbstractSearchable.SearchResult
A convenience class to hold search state.
NOTE: this is still in-flow, probably will take more responsibility/ or even change altogether on further factoring
Constructor Summary | |
---|---|
AbstractSearchable.SearchResult()
Instantiates an empty SearchResult. |
|
AbstractSearchable.SearchResult(Pattern ex,
MatchResult result,
int row,
int column)
Instantiates a SearchResult with the given state. |
Method Summary | |
---|---|
int |
getFoundColumn()
Returns the column index of the match position. |
int |
getFoundRow()
Returns the row index of the match position. |
MatchResult |
getMatchResult()
Returns the MatchResult representing the current match. |
Pattern |
getPattern()
Returns the Pattern used for matching. |
String |
getRegEx()
Returns the regex of the Pattern used for matching. |
void |
reset()
Resets all internal state to no-match. |
void |
resetFoundColumn()
Resets the column to OFF. |
void |
updateFrom(AbstractSearchable.SearchResult searchResult)
Sets internal state to the same as the given SearchResult. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSearchable.SearchResult()
public AbstractSearchable.SearchResult(Pattern ex, MatchResult result, int row, int column)
ex
- the Pattern used for matchingresult
- the current MatchResultrow
- the row index of the current matchcolumn
- the column index of the current matchMethod Detail |
---|
public void updateFrom(AbstractSearchable.SearchResult searchResult)
searchResult
- the SearchResult to copy internal state from.public String getRegEx()
public void reset()
public void resetFoundColumn()
public int getFoundColumn()
public int getFoundRow()
public MatchResult getMatchResult()
public Pattern getPattern()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |