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)
|
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);
public static TableStyleType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic 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.table
- table to evaluatecell
- to evaluatepublic 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.table
- table to evaluatecell
- CellReference to evaluatepublic final CellRangeAddressBase getRange(Table table, Cell cell)
getRange(Table, CellReference)
. Use that instead for performance.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.