Package io.keikai.model.impl
Class TableStyleImpl
- java.lang.Object
-
- io.keikai.model.impl.AbstractTableStyleAdv
-
- io.keikai.model.impl.TableStyleImpl
-
- All Implemented Interfaces:
STableStyle,Serializable,TableStyle
- Direct Known Subclasses:
TableStyleDark1,TableStyleDark10,TableStyleDark11,TableStyleDark2,TableStyleDark3,TableStyleDark4,TableStyleDark5,TableStyleDark6,TableStyleDark7,TableStyleDark8,TableStyleDark9,TableStyleLight1,TableStyleLight10,TableStyleLight11,TableStyleLight12,TableStyleLight13,TableStyleLight14,TableStyleLight15,TableStyleLight16,TableStyleLight17,TableStyleLight18,TableStyleLight19,TableStyleLight2,TableStyleLight20,TableStyleLight21,TableStyleLight3,TableStyleLight4,TableStyleLight5,TableStyleLight6,TableStyleLight7,TableStyleLight8,TableStyleLight9,TableStyleMedium1,TableStyleMedium10,TableStyleMedium11,TableStyleMedium12,TableStyleMedium13,TableStyleMedium14,TableStyleMedium15,TableStyleMedium16,TableStyleMedium17,TableStyleMedium18,TableStyleMedium19,TableStyleMedium2,TableStyleMedium20,TableStyleMedium21,TableStyleMedium22,TableStyleMedium23,TableStyleMedium24,TableStyleMedium25,TableStyleMedium26,TableStyleMedium27,TableStyleMedium28,TableStyleMedium3,TableStyleMedium4,TableStyleMedium5,TableStyleMedium6,TableStyleMedium7,TableStyleMedium8,TableStyleMedium9,TableStyleNone
public class TableStyleImpl extends AbstractTableStyleAdv
- Since:
- 3.8.0
- Author:
- henri
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableStyleImpl(String name, STableStyleElem wholeTable, STableStyleElem colStripe1, int colStripe1Size, STableStyleElem colStripe2, int colStripe2Size, STableStyleElem rowStripe1, int rowStripe1Size, STableStyleElem rowStripe2, int rowStripe2Size, STableStyleElem lastCol, STableStyleElem firstCol, STableStyleElem headerRow, STableStyleElem totalRow, STableStyleElem firstHeaderCell, STableStyleElem lastHeaderCell, STableStyleElem firstTotalCell, STableStyleElem lastTotalCell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColStripe1Size()STableStyleElemgetColStripe1Style()intgetColStripe2Size()STableStyleElemgetColStripe2Style()STableStyleElemgetFirstColumnStyle()STableStyleElemgetFirstHeaderCellStyle()STableStyleElemgetFirstTotalCellStyle()STableStyleElemgetHeaderRowStyle()intgetIndex()Some clients may care where in the table style list this definition came from, so we'll track it.STableStyleElemgetLastColumnStyle()STableStyleElemgetLastHeaderCellStyle()STableStyleElemgetLastTotalCellStyle()StringgetName()intgetRowStripe1Size()STableStyleElemgetRowStripe1Style()intgetRowStripe2Size()STableStyleElemgetRowStripe2Style()DifferentialStyleProvidergetStyle(TableStyleType type)STableStyleElemgetTotalRowStyle()STableStyleElemgetWholeTableStyle()booleanisBuiltin()
-
-
-
Constructor Detail
-
TableStyleImpl
public TableStyleImpl(String name, STableStyleElem wholeTable, STableStyleElem colStripe1, int colStripe1Size, STableStyleElem colStripe2, int colStripe2Size, STableStyleElem rowStripe1, int rowStripe1Size, STableStyleElem rowStripe2, int rowStripe2Size, STableStyleElem lastCol, STableStyleElem firstCol, STableStyleElem headerRow, STableStyleElem totalRow, STableStyleElem firstHeaderCell, STableStyleElem lastHeaderCell, STableStyleElem firstTotalCell, STableStyleElem lastTotalCell)
-
-
Method Detail
-
getName
public String getName()
- Returns:
- name (may be a built-in name)
-
getWholeTableStyle
public STableStyleElem getWholeTableStyle()
-
getColStripe1Style
public STableStyleElem getColStripe1Style()
-
getColStripe1Size
public int getColStripe1Size()
-
getColStripe2Style
public STableStyleElem getColStripe2Style()
-
getColStripe2Size
public int getColStripe2Size()
-
getRowStripe1Style
public STableStyleElem getRowStripe1Style()
-
getRowStripe1Size
public int getRowStripe1Size()
-
getRowStripe2Style
public STableStyleElem getRowStripe2Style()
-
getRowStripe2Size
public int getRowStripe2Size()
-
getLastColumnStyle
public STableStyleElem getLastColumnStyle()
-
getFirstColumnStyle
public STableStyleElem getFirstColumnStyle()
-
getHeaderRowStyle
public STableStyleElem getHeaderRowStyle()
-
getTotalRowStyle
public STableStyleElem getTotalRowStyle()
-
getFirstHeaderCellStyle
public STableStyleElem getFirstHeaderCellStyle()
-
getLastHeaderCellStyle
public STableStyleElem getLastHeaderCellStyle()
-
getFirstTotalCellStyle
public STableStyleElem getFirstTotalCellStyle()
-
getLastTotalCellStyle
public STableStyleElem getLastTotalCellStyle()
-
getIndex
public int getIndex()
Description copied from interface:TableStyleSome clients may care where in the table style list this definition came from, so we'll track it. The spec only references these by name, unlike Dxf records, which these definitions reference by index (XML definition order). Nice of MS to be consistent when defining the ECMA standard. Use org.apache.poi.xssf.usermodel.XSSFBuiltinTableStyle.isBuiltinStyle(TableStyle) to determine whether the index is for a built-in style or explicit user style- Returns:
- index from org.apache.poi.xssf.model.StylesTable.getExplicitTableStyle(String) or org.apache.poi.xssf.usermodel.XSSFBuiltinTableStyle.ordinal()
-
isBuiltin
public boolean isBuiltin()
- Returns:
- true if this is a built-in style defined in the OOXML specification, false if it is a user style
-
getStyle
public DifferentialStyleProvider getStyle(TableStyleType type)
- Returns:
- style definition for the given type, or null if not defined in this style.
-
-