|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.table.search.ColorStyle
public class ColorStyle
ColorStyle is a style that is used to highlight the matching cells of a search with a specified background color.
Field Summary | |
---|---|
protected Color |
selectionColor
the background color to use |
Constructor Summary | |
---|---|
ColorStyle()
Constructs a ColorStyle. |
|
ColorStyle(Color selectionColor)
Constructs a ColorStyle. |
Method Summary | |
---|---|
void |
apply(Component c,
JTable table,
int row,
int column)
Applies the style to the component c. |
void |
clear()
Clears all of the matched cells. |
Color |
getSelectionColor()
Retrieves the selection color. |
void |
selectCell(int row,
int column)
Adds the specified cell defined by row and column to the matched cells. |
void |
setSelectionColor(Color selectionColor)
Assigns the selection color. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Color selectionColor
Constructor Detail |
---|
public ColorStyle()
public ColorStyle(Color selectionColor)
Method Detail |
---|
public void apply(Component c, JTable table, int row, int column)
apply
in interface Style
c
- the component that we wish to apply a style to.table
- the associated tablerow
- the current row of the tablecolumn
- the current column of the tablepublic void clear()
public Color getSelectionColor()
public void selectCell(int row, int column)
row
- the row index of the cellcolumn
- the column index of the cellpublic void setSelectionColor(Color selectionColor)
selectionColor
- the colot to assign
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |