|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TableStyleType> org.apache.poi.ss.usermodel.TableStyleType
public enum TableStyleType
Ordered list of table style elements, for both data tables and pivot tables. Some elements only apply to pivot tables, but any style definition can omit any number, so having them in one list should not be a problem.
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.
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.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 evaluate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |