|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.grid.ColumnStripeTableStyleProvider
public class ColumnStripeTableStyleProvider
CellStyleProvider
for column stripes.
Field Summary | |
---|---|
protected static Color |
DEFAULT_COLUMN_STRIPE_COLOR
|
Constructor Summary | |
---|---|
ColumnStripeTableStyleProvider()
Creates a ColumnStripeCellStyleProvider . |
|
ColumnStripeTableStyleProvider(Color[] alternativeBackground)
Creates a ColumnStripeCellStyleProvider . |
|
ColumnStripeTableStyleProvider(Color[] alternativeBackground,
Color[] alternativeForeground)
Creates a ColumnStripeCellStyleProvider . |
Method Summary | |
---|---|
Color[] |
getAlternativeBackgroundColors()
Gets the alternative background colors. |
Color[] |
getAlternativeForegroundColors()
Gets the alternative foreground colors. |
CellStyle |
getCellStyleAt(JTable table,
int rowIndex,
int columnIndex)
Gets the cell style at the specified cell. |
void |
setAlternativeBackgroundColors(Color[] alternativeBackgroundColors)
Sets alternative background colors for the columns. |
void |
setAlternativeForegroundColors(Color[] alternativeForegroundColors)
Sets alternative Foreground colors for the columns. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Color DEFAULT_COLUMN_STRIPE_COLOR
Constructor Detail |
---|
public ColumnStripeTableStyleProvider()
ColumnStripeCellStyleProvider
. It uses WHITE and a very light yellow color as two
alternative column colors.
public ColumnStripeTableStyleProvider(Color[] alternativeBackground)
ColumnStripeCellStyleProvider
. You can define the alternative colors here.
alternativeBackground
- the alternative column background colors. The length of the array should be greater
than or equal to 2. You could use an array that the length is 1 but it will not have
a stripe effect but the same background for all columns.public ColumnStripeTableStyleProvider(Color[] alternativeBackground, Color[] alternativeForeground)
ColumnStripeCellStyleProvider
. You can define the alternative colors here.
alternativeBackground
- the alternative column background colors. The length of the array should be greater
than or equal to 2. You could use an array that the length is 1 but it will not have
a stripe effect but the same background for all columns.alternativeForeground
- the alternative column foreground colors. The length of the array should be greater
than or equal to 2. You could use an array that the length is 1 but it will not have
a stripe effect but the same foreground for all columns.Method Detail |
---|
public CellStyle getCellStyleAt(JTable table, int rowIndex, int columnIndex)
TableStyleProvider
getCellStyleAt
in interface TableStyleProvider
table
- the table.rowIndex
- the row index as in the tablecolumnIndex
- the column index as in the table
public Color[] getAlternativeBackgroundColors()
public void setAlternativeBackgroundColors(Color[] alternativeBackgroundColors)
alternativeBackgroundColors
- alternative colors.public Color[] getAlternativeForegroundColors()
public void setAlternativeForegroundColors(Color[] alternativeForegroundColors)
alternativeForegroundColors
- alternative colors.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |