JIDE 3.5.15

com.jidesoft.grid
Class ColumnStripeCellStyleProvider

java.lang.Object
  extended by com.jidesoft.grid.ColumnStripeCellStyleProvider
All Implemented Interfaces:
CellStyleProvider

Deprecated. Please use CellStyleTable.setTableStyleProvider(TableStyleProvider) to set a ColumnStripeTableStyleProvider which will keep the alternative column stripes even after the columns are rearranged.

@Deprecated
public class ColumnStripeCellStyleProvider
extends Object
implements CellStyleProvider

CellStyleProvider for column stripes.


Field Summary
protected static Color DEFAULT_COLUMN_STRIPE_COLOR
          Deprecated.  
 
Constructor Summary
ColumnStripeCellStyleProvider()
          Deprecated. Creates a ColumnStripeCellStyleProvider.
ColumnStripeCellStyleProvider(Color[] alternativeBackground)
          Deprecated. Creates a ColumnStripeCellStyleProvider.
ColumnStripeCellStyleProvider(Color[] alternativeBackground, Color[] alternativeForeground)
          Deprecated. Creates a ColumnStripeCellStyleProvider.
 
Method Summary
 Color[] getAlternativeBackgroundColors()
          Deprecated. Gets the alternative background colors.
 Color[] getAlternativeForegroundColors()
          Deprecated. Gets the alternative foreground colors.
 CellStyle getCellStyleAt(TableModel model, int rowIndex, int columnIndex)
          Deprecated. Gets the cell style at the specified cell.
 void setAlternativeBackgroundColors(Color[] alternativeBackgroundColors)
          Deprecated. Sets alternative background colors for the columns.
 void setAlternativeForegroundColors(Color[] alternativeForegroundColors)
          Deprecated. 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

DEFAULT_COLUMN_STRIPE_COLOR

protected static final Color DEFAULT_COLUMN_STRIPE_COLOR
Deprecated. 
Constructor Detail

ColumnStripeCellStyleProvider

public ColumnStripeCellStyleProvider()
Deprecated. 
Creates a ColumnStripeCellStyleProvider. It uses WHITE and a very light yellow color as two alternative column colors.


ColumnStripeCellStyleProvider

public ColumnStripeCellStyleProvider(Color[] alternativeBackground)
Deprecated. 
Creates a ColumnStripeCellStyleProvider. You can define the alternative colors here.

Parameters:
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.

ColumnStripeCellStyleProvider

public ColumnStripeCellStyleProvider(Color[] alternativeBackground,
                                     Color[] alternativeForeground)
Deprecated. 
Creates a ColumnStripeCellStyleProvider. You can define the alternative colors here.

Parameters:
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

getCellStyleAt

public CellStyle getCellStyleAt(TableModel model,
                                int rowIndex,
                                int columnIndex)
Deprecated. 
Description copied from interface: CellStyleProvider
Gets the cell style at the specified cell.

Specified by:
getCellStyleAt in interface CellStyleProvider
Parameters:
model - the model. This is the model from table.getModel().
rowIndex - the row index as in the model
columnIndex - the column index as in the model
Returns:
the cell style at the specified cell.

getAlternativeBackgroundColors

public Color[] getAlternativeBackgroundColors()
Deprecated. 
Gets the alternative background colors.

Returns:
the alternative background colors.

setAlternativeBackgroundColors

public void setAlternativeBackgroundColors(Color[] alternativeBackgroundColors)
Deprecated. 
Sets alternative background colors for the columns.

Parameters:
alternativeBackgroundColors - alternative colors.

getAlternativeForegroundColors

public Color[] getAlternativeForegroundColors()
Deprecated. 
Gets the alternative foreground colors.

Returns:
the alternative foreground colors.

setAlternativeForegroundColors

public void setAlternativeForegroundColors(Color[] alternativeForegroundColors)
Deprecated. 
Sets alternative Foreground colors for the columns.

Parameters:
alternativeForegroundColors - alternative colors.

JIDE 3.5.15