public class TableStyle extends Style
| Modifier and Type | Method and Description |
|---|---|
void |
clearCellAttrs() |
void |
clearRowAttrs() |
java.lang.Object |
fetchCellAttr(int key) |
java.lang.Object |
fetchInheritedBorderAttr(int key) |
java.lang.Object |
fetchInheritedCellAttr(int key) |
java.lang.Object |
fetchInheritedRowAttr(int key) |
java.lang.Object |
fetchInheritedShadingAttr(int key) |
java.lang.Object |
fetchRowAttr(int key) |
int |
getAlignment()
Specifies the alignment for the table style.
|
boolean |
getAllowBreakAcrossPages()
Gets a flag indicating whether text in a table row is allowed to split across a page break.
|
boolean |
getBidi()
Gets whether this is a style for a right-to-left table.
|
BorderCollection |
getBorders()
Gets the collection of default cell borders for the style.
|
double |
getBottomPadding()
Gets the amount of space (in points) to add below the contents of table cells.
|
double |
getCellSpacing()
Gets the amount of space (in points) between the cells.
|
int |
getColumnStripe()
Gets a number of columns to include in the banding when the style specifies odd/even columns banding.
|
ConditionalStyleCollection |
getConditionalStyles()
Collection of conditional styles that may be defined for this table style.
|
java.lang.Object |
getDirectBorderAttr(int key) |
java.lang.Object |
getDirectCellAttr(int key) |
java.lang.Object |
getDirectRowAttr(int key) |
double |
getLeftIndent()
Gets the value that represents the left indent of a table.
|
double |
getLeftPadding()
Gets the amount of space (in points) to add to the left of the contents of table cells.
|
double |
getRightPadding()
Gets the amount of space (in points) to add to the right of the contents of table cells.
|
int |
getRowStripe()
Gets a number of rows to include in the banding when the style specifies odd/even row banding.
|
Shading |
getShading()
Gets a
Shading object that refers to the shading formatting for table cells. |
double |
getTopPadding()
Gets the amount of space (in points) to add above the contents of table cells.
|
int |
getVerticalAlignment()
Specifies the vertical alignment for the cells.
|
void |
resetToDefaultAttrs() |
void |
setAlignment(int value)
Specifies the alignment for the table style.
|
void |
setAllowBreakAcrossPages(boolean value)
Sets a flag indicating whether text in a table row is allowed to split across a page break.
|
void |
setBidi(boolean value)
Sets whether this is a style for a right-to-left table.
|
void |
setBorderAttr(int key,
java.lang.Object value) |
void |
setBottomPadding(double value)
Sets the amount of space (in points) to add below the contents of table cells.
|
void |
setCellAttr(int key,
java.lang.Object value) |
void |
setCellSpacing(double value)
Sets the amount of space (in points) between the cells.
|
void |
setColumnStripe(int value)
Sets a number of columns to include in the banding when the style specifies odd/even columns banding.
|
void |
setLeftIndent(double value)
Sets the value that represents the left indent of a table.
|
void |
setLeftPadding(double value)
Sets the amount of space (in points) to add to the left of the contents of table cells.
|
void |
setRightPadding(double value)
Sets the amount of space (in points) to add to the right of the contents of table cells.
|
void |
setRowAttr(int key,
java.lang.Object value) |
void |
setRowStripe(int value)
Sets a number of rows to include in the banding when the style specifies odd/even row banding.
|
void |
setTopPadding(double value)
Sets the amount of space (in points) to add above the contents of table cells.
|
void |
setVerticalAlignment(int value)
Specifies the vertical alignment for the cells.
|
clearParaAttrs, clearRunAttrs, equals, fetchInheritedParaAttr, fetchInheritedRunAttr, fetchParaAttr, getAliases, getBaseStyleName, getBuiltIn, getDirectParaAttr, getDirectParaAttr, getDirectRunAttr, getDocument, getFont, getLinkedStyleName, getList, getListFormat, getName, getNextParagraphStyleName, getParagraphFormat, getStyleIdentifier, getStyles, getType, isHeading, isQuickStyle, isQuickStyle, memberwiseClone, remove, removeParaAttr, removeRunAttr, setBaseStyleName, setName, setNextParagraphStyleName, setParaAttr, setRunAttrpublic java.lang.Object getDirectCellAttr(int key)
public java.lang.Object fetchCellAttr(int key)
public java.lang.Object fetchInheritedCellAttr(int key)
public void setCellAttr(int key,
java.lang.Object value)
public void clearCellAttrs()
public java.lang.Object getDirectRowAttr(int key)
public java.lang.Object fetchRowAttr(int key)
public java.lang.Object fetchInheritedRowAttr(int key)
public void setRowAttr(int key,
java.lang.Object value)
public void clearRowAttrs()
public void resetToDefaultAttrs()
public java.lang.Object getDirectBorderAttr(int key)
public java.lang.Object fetchInheritedBorderAttr(int key)
public void setBorderAttr(int key,
java.lang.Object value)
public java.lang.Object fetchInheritedShadingAttr(int key)
public boolean getAllowBreakAcrossPages()
public void setAllowBreakAcrossPages(boolean value)
value - A flag indicating whether text in a table row is allowed to split across a page break.public BorderCollection getBorders()
public double getLeftPadding()
public void setLeftPadding(double value)
value - The amount of space (in points) to add to the left of the contents of table cells.public double getRightPadding()
public void setRightPadding(double value)
value - The amount of space (in points) to add to the right of the contents of table cells.public double getTopPadding()
public void setTopPadding(double value)
value - The amount of space (in points) to add above the contents of table cells.public double getBottomPadding()
public void setBottomPadding(double value)
value - The amount of space (in points) to add below the contents of table cells.public int getAlignment()
TableAlignment.LEFT.int value. The returned value is one of TableAlignment constants.public void setAlignment(int value)
TableAlignment.LEFT.value - The corresponding int value. The value must be one of TableAlignment constants.public double getCellSpacing()
public void setCellSpacing(double value)
value - The amount of space (in points) between the cells.public boolean getBidi()
When true, the cells in rows are laid out right to left.
The default value is false.
public void setBidi(boolean value)
When true, the cells in rows are laid out right to left.
The default value is false.
value - Whether this is a style for a right-to-left table.public double getLeftIndent()
public void setLeftIndent(double value)
value - The value that represents the left indent of a table.public Shading getShading()
Shading object that refers to the shading formatting for table cells.Shading object that refers to the shading formatting for table cells.public int getVerticalAlignment()
CellVerticalAlignment.TOP.int value. The returned value is one of CellVerticalAlignment constants.public void setVerticalAlignment(int value)
CellVerticalAlignment.TOP.value - The corresponding int value. The value must be one of CellVerticalAlignment constants.public int getRowStripe()
public void setRowStripe(int value)
value - A number of rows to include in the banding when the style specifies odd/even row banding.public int getColumnStripe()
public void setColumnStripe(int value)
value - A number of columns to include in the banding when the style specifies odd/even columns banding.public ConditionalStyleCollection getConditionalStyles()
ConditionalStyleCollection value.