public enum TableStyleType extends java.lang.Enum<TableStyleType>
The order is the specification order of application, with later elements overriding previous ones, if style properties conflict.
Processing could iterate bottom-up if looking for specific properties, and stop when the first style is found defining a value for that property.
Enum names match the OOXML spec values exactly, so valueOf(String)
will work.
Modifier and Type | Method and Description |
---|---|
CellRangeAddressBase |
appliesTo(Table table, Cell cell)
A range is returned only for the part of the table matching this enum instance and containing the given cell.
(仅针对与此枚举实例匹配并包含给定单元格的表部分返回范围。)
|
CellRangeAddressBase |
appliesTo(Table table, CellReference cell)
A range is returned only for the part of the table matching this enum instance and containing the given cell reference.
(仅针对与此枚举实例匹配并包含给定单元格引用的表部分返回范围。)
|
CellRangeAddressBase |
getRange(Table table, Cell cell)
Calls
getRange(Table, CellReference) .
(调用 getRange(Table, CellReference)。)
|
CellRangeAddressBase |
getRange(Table table, CellReference cell) |
static TableStyleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static TableStyleType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final TableStyleType wholeTable
public static final TableStyleType pageFieldLabels
public static final TableStyleType pageFieldValues
public static final TableStyleType firstColumnStripe
public static final TableStyleType secondColumnStripe
public static final TableStyleType firstRowStripe
public static final TableStyleType secondRowStripe
public static final TableStyleType lastColumn
public static final TableStyleType firstColumn
public static final TableStyleType headerRow
public static final TableStyleType totalRow
public static final TableStyleType firstHeaderCell
public static final TableStyleType lastHeaderCell
public static final TableStyleType firstTotalCell
public static final TableStyleType lastTotalCell
public static final TableStyleType firstSubtotalColumn
public static final TableStyleType secondSubtotalColumn
public static final TableStyleType thirdSubtotalColumn
public static final TableStyleType blankRow
public static final TableStyleType firstSubtotalRow
public static final TableStyleType secondSubtotalRow
public static final TableStyleType thirdSubtotalRow
public static final TableStyleType firstColumnSubheading
public static final TableStyleType secondColumnSubheading
public static final TableStyleType thirdColumnSubheading
public static final TableStyleType firstRowSubheading
public static final TableStyleType secondRowSubheading
public static final TableStyleType thirdRowSubheading
public static TableStyleType[] values()
for (TableStyleType c : TableStyleType.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (TableStyleType c : TableStyleType.values()) System.out.println(c);)
public static TableStyleType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
public CellRangeAddressBase appliesTo(Table table, Cell cell)
wholeTable
borders only apply to the outer boundary of a table, while the rest of the styling, such as font and color, could apply to all the interior cells as well.
(仅针对与此枚举实例匹配并包含给定单元格的表部分返回范围。对于所有其他情况,返回 Null,例如: 与表格不同的工作表上的单元格 表格外的单元格 此枚举部分不包含在表格中(即没有标题/总计行) 此枚举用于尚未实现的表格部分在 POI 中,例如数据透视表元素,返回的范围可用于确定样式选项如何应用于此单元格,也可能不应用于此单元格。例如,wholeTable 边框仅适用于表格的外边界,而其他样式(如字体和颜色)也可以适用于所有内部单元格。)
table
- table to evaluate
(table - 要评估的表)
cell
- to evaluate
(单元格 - 评估)
public CellRangeAddressBase appliesTo(Table table, CellReference cell)
wholeTable
borders only apply to the outer boundary of a table, while the rest of the styling, such as font and color, could apply to all the interior cells as well.
(仅针对与此枚举实例匹配并包含给定单元格引用的表部分返回范围。对于所有其他情况,返回 Null,例如: 与表格不同的工作表上的单元格 表格外的单元格 此 Enum 部分未包含在表格中(即没有标题/总计行) 此 Enum 用于尚未实现的表格部分在 POI 中,例如数据透视表元素,返回的范围可用于确定样式选项如何应用于此单元格,也可能不应用于此单元格。例如,wholeTable 边框仅适用于表格的外边界,而其他样式(如字体和颜色)也可以适用于所有内部单元格。)
table
- table to evaluate
(table - 要评估的表)
cell
- CellReference to evaluate
(cell - 要评估的 CellReference)
public final CellRangeAddressBase getRange(Table table, Cell cell)
getRange(Table, CellReference)
. Use that instead for performance.
(调用 getRange(Table, CellReference)。用它来代替性能。)
table
-
(桌子 -)
cell
-
(细胞 -)
getRange(Table, CellReference)
public CellRangeAddressBase getRange(Table table, CellReference cell)
table
-
(桌子 -)
cell
-
(细胞 -)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.