Package org.apache.poi.xssf.usermodel
Class XSSFBuiltinTableStyle.XSSFBuiltinTypeStyleStyle
java.lang.Object
org.apache.poi.xssf.usermodel.XSSFBuiltinTableStyle.XSSFBuiltinTypeStyleStyle
- All Implemented Interfaces:
TableStyle
- Enclosing class:
- XSSFBuiltinTableStyle
protected static class XSSFBuiltinTableStyle.XSSFBuiltinTypeStyleStyle
extends Object
implements TableStyle
implementation for built-in styles
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXSSFBuiltinTypeStyleStyle(XSSFBuiltinTableStyle builtIn, TableStyle style) -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()Some clients may care where in the table style list this definition came from, so we'll track it.getName()getStyle(TableStyleType type) boolean
-
Constructor Details
-
XSSFBuiltinTypeStyleStyle
- Parameters:
builtIn-style-
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTableStyle- Returns:
- name (may be a built-in name)
-
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- Specified by:
getIndexin interfaceTableStyle- Returns:
- index from org.apache.poi.xssf.model.StylesTable.getExplicitTableStyle(String) or org.apache.poi.xssf.usermodel.XSSFBuiltinTableStyle.ordinal()
-
isBuiltin
public boolean isBuiltin()- Specified by:
isBuiltinin interfaceTableStyle- Returns:
- true if this is a built-in style defined in the OOXML specification, false if it is a user style
-
getStyle
- Specified by:
getStylein interfaceTableStyle- Returns:
- style definition for the given type, or null if not defined in this style.
-