Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot
Class PivotTable.PivotDataStyleModel

java.lang.Object
  extended by com.citra.table.styles.DefaultStyleModel
      extended by 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.


Field Summary
 
Fields inherited from class com.citra.table.styles.DefaultStyleModel
styles
 
Constructor Summary
PivotTable.PivotDataStyleModel()
          Creates the default style model for the PivotTable.
 
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 com.citra.table.styles.DefaultStyleModel
addStyle, clearStyles, getStyle, getStyles, insertStyle, removeStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PivotTable.PivotDataStyleModel

public PivotTable.PivotDataStyleModel()
Creates the default style model for the PivotTable.

Method Detail

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 table
row - the current row of the table
column - the current column of the table

Copyright © 2011 Citra Technologies. All Rights Reserved.