|
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.ColumnCellStyleProvider
public class ColumnCellStyleProvider
CellStyleProvider
for column stripes.
Constructor Summary | |
---|---|
ColumnCellStyleProvider(TableModel tableModel)
Creates a ColumnStripeCellStyleProvider . |
Method Summary | |
---|---|
CellStyle |
getCellStyleAt(int columnIndex)
Sets the cell style for the column. |
CellStyle |
getCellStyleAt(TableModel model,
int rowIndex,
int columnIndex)
Gets the cell style at the specified cell. |
CellStyle[] |
getCellStyles()
Gets the cell styles. |
void |
setCellStyleAt(int columnIndex,
CellStyle style)
Sets the cell style for the column. |
void |
setCellStyles(CellStyle[] cellStyles)
Gets the cell styles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnCellStyleProvider(TableModel tableModel)
ColumnStripeCellStyleProvider
. It uses WHITE and a very light yellow color as two
alternative column colors.
tableModel
- the table modelMethod Detail |
---|
public CellStyle getCellStyleAt(TableModel model, int rowIndex, int columnIndex)
getCellStyleAt
in interface CellStyleProvider
model
- the model. This is the model from table.getModel().rowIndex
- the column index as in the modelcolumnIndex
- the column index as in the model
public CellStyle[] getCellStyles()
public void setCellStyles(CellStyle[] cellStyles)
cellStyles
- the new cell styles.public void setCellStyleAt(int columnIndex, CellStyle style)
columnIndex
- the column indexstyle
- the CellStyle for the columnpublic CellStyle getCellStyleAt(int columnIndex)
columnIndex
- the column index
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |