public class TableProperties extends Object
This class is a corresponded high level class for element "style:table-properties". It provides methods to access the attributes and children of "style:table-properties".
Modifier | Constructor and Description |
---|---|
protected |
TableProperties()
Create an instance of TableProperties
|
protected |
TableProperties(StyleTablePropertiesElement properties)
Create an instance of TableProperties from an element
|
Modifier and Type | Method and Description |
---|---|
String |
getBreakAfter()
Return the break property after the reference.
|
String |
getBreakBefore()
Return the break property before the reference.
|
static TableProperties |
getOrCreateTableProperties(OdfStyleBase style)
Return an instance of
TableProperties to represent the "style:table-properties" in a style element. |
int |
getPageNumber()
Return the page number that is used for a new page with a master style.
|
static TableProperties |
getTableProperties(OdfStyleBase style)
Return an instance of
TableProperties to represent the "style:table-properties" in a style element. |
void |
setBreak(String breakPosition,
String breakAttribute)
Set the break.
|
void |
setPageNumber(int pageNumber)
Set the page number for a new page with a master style.
|
protected TableProperties()
protected TableProperties(StyleTablePropertiesElement properties)
properties
- - the element of style:table-propertiespublic void setBreak(String breakPosition, String breakAttribute)
breakPosition
- the position to insert a break (before or after)breakAttribute
- the attribute name (page or column)public String getBreakBefore()
Null will be returned if there is no break setting before the reference.
public String getBreakAfter()
Null will be returned if there is no break setting after the reference.
public int getPageNumber()
If there is no valid page number, 0 will be returned;
public void setPageNumber(int pageNumber)
pageNumber
- the page numberpublic static TableProperties getOrCreateTableProperties(OdfStyleBase style)
TableProperties to represent the "style:table-properties" in a style element.
If there is no "style:table-properties" defined in the style element, a new "style:table-properties" element will be created.
style
- - a style elementTableProperties
public static TableProperties getTableProperties(OdfStyleBase style)
TableProperties to represent the "style:table-properties" in a style element.
If there is no "style:table-properties" defined in the style element, null will be returned.
style
- - a style elementTableProperties;Null if there is no
"style:table-properties" defined
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.