Package org.apache.poi.xssf.usermodel
Class XSSFTableStyleInfo
java.lang.Object
org.apache.poi.xssf.usermodel.XSSFTableStyleInfo
- All Implemented Interfaces:
TableStyleInfo
Wrapper for the CT class, to cache values and add style lookup
-
Constructor Summary
ConstructorsConstructorDescriptionXSSFTableStyleInfo
(StylesTable stylesTable, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyleInfo tableStyleInfo) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getStyle()
boolean
boolean
boolean
boolean
void
setFirstColumn
(boolean showFirstColumn) void
setLastColumn
(boolean showLastColumn) void
void
setShowColumnStripes
(boolean show) void
setShowRowStripes
(boolean show)
-
Constructor Details
-
XSSFTableStyleInfo
public XSSFTableStyleInfo(StylesTable stylesTable, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyleInfo tableStyleInfo) - Parameters:
stylesTable
-tableStyleInfo
-
-
-
Method Details
-
isShowColumnStripes
public boolean isShowColumnStripes()- Specified by:
isShowColumnStripes
in interfaceTableStyleInfo
- Returns:
- true if alternating column styles should be applied
-
setShowColumnStripes
public void setShowColumnStripes(boolean show) -
isShowRowStripes
public boolean isShowRowStripes()- Specified by:
isShowRowStripes
in interfaceTableStyleInfo
- Returns:
- true if alternating row styles should be applied
-
setShowRowStripes
public void setShowRowStripes(boolean show) -
isShowFirstColumn
public boolean isShowFirstColumn()- Specified by:
isShowFirstColumn
in interfaceTableStyleInfo
- Returns:
- true if the distinct first column style should be applied
-
setFirstColumn
public void setFirstColumn(boolean showFirstColumn) -
isShowLastColumn
public boolean isShowLastColumn()- Specified by:
isShowLastColumn
in interfaceTableStyleInfo
- Returns:
- true if the distinct last column style should be applied
-
setLastColumn
public void setLastColumn(boolean showLastColumn) -
getName
- Specified by:
getName
in interfaceTableStyleInfo
- Returns:
- the name of the style (may reference a built-in style)
-
setName
-
getStyle
- Specified by:
getStyle
in interfaceTableStyleInfo
- Returns:
- style definition
-