org.apache.poi.xssf.usermodel
Class XSSFTableStyle

java.lang.Object
  extended by org.apache.poi.xssf.usermodel.XSSFTableStyle
All Implemented Interfaces:
TableStyle

public class XSSFTableStyle
extends java.lang.Object
implements TableStyle

TableStyle implementation for styles defined in the OOXML styles.xml. Also used for built-in styles via dummy XML generated from presetTableStyles.xml.


Constructor Summary
XSSFTableStyle(int index, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxfs dxfs, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyle tableStyle, IndexedColorMap colorMap)
           
 
Method Summary
 int getIndex()
           
 java.lang.String getName()
           
 DifferentialStyleProvider getStyle(TableStyleType type)
           
 boolean isBuiltin()
          Always false for these, these are user defined styles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSSFTableStyle

public XSSFTableStyle(int index,
                      org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxfs dxfs,
                      org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyle tableStyle,
                      IndexedColorMap colorMap)
Parameters:
index - style definition index or built-in ordinal depending on use
dxfs -
tableStyle -
colorMap - indexed color map - default or custom
See Also:
TableStyle.getIndex()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface TableStyle

getIndex

public int getIndex()
Specified by:
getIndex in interface TableStyle

isBuiltin

public boolean isBuiltin()
Always false for these, these are user defined styles

Specified by:
isBuiltin in interface TableStyle

getStyle

public DifferentialStyleProvider getStyle(TableStyleType type)
Specified by:
getStyle in interface TableStyle