|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.decorator.Highlighter
org.jdesktop.swingx.decorator.ConditionalHighlighter
org.jdesktop.swingx.decorator.PatternHighlighter
org.jdesktop.swingx.decorator.SearchHighlighter
public class SearchHighlighter
Convenience Highlighter to test and highlight cells in searching.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jdesktop.swingx.decorator.Highlighter |
---|
Highlighter.UIHighlighter |
Field Summary |
---|
Fields inherited from class org.jdesktop.swingx.decorator.PatternHighlighter |
---|
pattern |
Fields inherited from class org.jdesktop.swingx.decorator.ConditionalHighlighter |
---|
highlightColumn, mask, testColumn |
Fields inherited from class org.jdesktop.swingx.decorator.Highlighter |
---|
changeEvent, immutable, ledgerBackground, listenerList, notePadBackground |
Constructor Summary | |
---|---|
SearchHighlighter()
Instantiates a default SearchHighlighter. |
|
SearchHighlighter(java.awt.Color background,
java.awt.Color foreground)
Instantiates a default SearchHighlighter with background/foreground colors. |
Method Summary | |
---|---|
protected boolean |
needsHighlight(ComponentAdapter adapter)
Checks if the cell identified by the specified adapter is a potential candidate for highlighting, and returns true if so; otherwise, it returns false. |
void |
setEnabled(boolean enableHighlight)
Toggle to enable/disable - if disabled never hightlights. |
void |
setHighlightAll()
convenience method to test and highlight all rows/columns and enable. |
void |
setHighlightCell(int row,
int modelColumn)
Set's highlightRow to row, test- and highlight column = column |
void |
setHighlightRow(int row)
set the row to match in test. |
protected boolean |
test(ComponentAdapter adapter)
Tests whether the string representation of the value of the cell identified by the specified adapter matches the pattern, if any, that is set for this PatternHighlighter , and returns true if the
test succeeds; Otherwise, it returns false. |
Methods inherited from class org.jdesktop.swingx.decorator.PatternHighlighter |
---|
getPattern, setPattern, setPattern |
Methods inherited from class org.jdesktop.swingx.decorator.ConditionalHighlighter |
---|
computeBackground, computeForeground, computeSelectedForeground, doMask, getHighlightColumnIndex, getMask, getTestColumnIndex, highlight, maskBackground, maskForeground, setHighlightColumnIndex, setMask, setTestColumnIndex |
Methods inherited from class org.jdesktop.swingx.decorator.Highlighter |
---|
addChangeListener, applyBackground, applyFont, applyForeground, computeSelectedBackground, doHighlight, fireStateChanged, getBackground, getChangeListeners, getForeground, getSelectedBackground, getSelectedForeground, isImmutable, removeChangeListener, setBackground, setForeground, setSelectedBackground, setSelectedForeground |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchHighlighter()
public SearchHighlighter(java.awt.Color background, java.awt.Color foreground)
background
- color of hightlight backgroundforeground
- color of highlight foregroundMethod Detail |
---|
public void setEnabled(boolean enableHighlight)
enableHighlight
- protected boolean needsHighlight(ComponentAdapter adapter)
ConditionalHighlighter
needsHighlight
in class ConditionalHighlighter
protected boolean test(ComponentAdapter adapter)
PatternHighlighter
PatternHighlighter
, and returns true if the
test succeeds; Otherwise, it returns false.
test
in class PatternHighlighter
adapter
- the current cell rendering adapter
public void setHighlightRow(int row)
row
- public void setHighlightAll()
public void setHighlightCell(int row, int modelColumn)
row
- modelColumn
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |