com.citra.pivot
Class PivotTable.PivotDataStyleModel
java.lang.Object
com.citra.table.styles.DefaultStyleModel
com.citra.pivot.PivotTable.PivotDataStyleModel
- All Implemented Interfaces:
- StyleModel
- Enclosing class:
- PivotTable
public class PivotTable.PivotDataStyleModel
- extends DefaultStyleModel
PivotDataStyleModel is the PivotTable's style model.
It takes care of applying the styles to the table's data cells.
If you want to define your own style model, you need to
create a subclass of this class and have your applyStyles method call super.applyStyles.
Method Summary |
void |
applyStyles(Component c,
JTable table,
int row,
int column)
Applies the styles currently in the model to the component c. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PivotTable.PivotDataStyleModel
public PivotTable.PivotDataStyleModel()
- Creates the default style model for the PivotTable.
applyStyles
public void applyStyles(Component c,
JTable table,
int row,
int column)
- Applies the styles currently in the model to the component c.
- Specified by:
applyStyles
in interface StyleModel
- Overrides:
applyStyles
in class DefaultStyleModel
- Parameters:
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 table