Class TableStyle
java.lang.Object
com.independentsoft.office.odf.styles.Style
com.independentsoft.office.odf.styles.BaseStyle
com.independentsoft.office.odf.styles.TableStyle
Represents the table style.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.styles.BaseStyle
className, dataStyle, enableAutoUpdate, family, linkedStyleName, listStyle, masterPageName, nextStyle, outlineLevelEmpty, outlineNumberingLevel, parentStyle, styleMappingsFields inherited from class com.independentsoft.office.odf.styles.Style
displayName, name -
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the TableStyle class.TableStyle(String name)Initializes a new instance of the TableStyle class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the horizontal alignment of a table.Gets the background color for table.Gets the background image.Specifies what border model to use when creating a table with a border.Gets the bottom margin.Gets the break after table.Gets the break before table.Gets the keep together.Gets the left margin.Gets the margin.Gets the page number that should be used for a new page when either a paragraph or table style specifies a master page that should be applied beginning from the start of a paragraph or table.Gets the width of a table relative to the width of the area that the table is in.Gets the right margin.Specifies if enables or disables a three-dimensional shadow for a three-dimensional object.Gets the top margin.getWidth()Gets the fixed width of a table.Gets the writing mode of the table.booleanSpecifies whether a table is displayed.booleanSpecifies that a page break may occur inside a table.voidsetAlignment(TableAlignment alignment)Sets the horizontal alignment of a table.voidsetBackgroundColor(String backgroundColor)Sets the background color for table.voidsetBackgroundImage(BackgroundImage backgroundImage)Sets the background image.voidsetBorderModel(BorderModel borderModel)Specifies what border model to use when creating a table with a border.voidsetBottomMargin(Size bottomMargin)Sets the bottom margin.voidsetBreakAfter(Break breakAfter)Sets the break after table.voidsetBreakBefore(Break breakBefore)Sets the break before table.voidsetDisplay(boolean display)Specifies whether a table is displayed.voidsetEnableBreakBetweenRows(boolean enableBreakBetweenRows)Specifies that a page break may occur inside a table.voidsetKeepTogether(KeepTogether keepTogether)Sets the keep together.voidsetLeftMargin(Size leftMargin)Sets the left margin.voidSets the margin.voidsetPageNumber(String pageNumber)Sets the page number that should be used for a new page when either a paragraph or table style specifies a master page that should be applied beginning from the start of a paragraph or table.voidsetRelativeWidth(Size relativeWidth)Sets the width of a table relative to the width of the area that the table is in.voidsetRightMargin(Size rightMargin)Sets the right margin.voidSpecifies if enables or disables a three-dimensional shadow for a three-dimensional object.voidsetTopMargin(Size topMargin)Sets the top margin.voidSets the fixed width of a table.voidsetWritingMode(WritingMode writingMode)Sets the writing mode of the table.toString()Converts the value of the current TableStyle object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.styles.BaseStyle
getClassName, getDataStyle, getFamily, getListStyle, getMasterPageName, getNextStyle, getOutlineNumberingLevel, getParentStyle, getStyleMappings, isEnableAutoUpdate, setClassName, setDataStyle, setEnableAutoUpdate, setListStyle, setMasterPageName, setNextStyle, setOutlineNumberingLevel, setParentStyle, toStringMethods inherited from class com.independentsoft.office.odf.styles.Style
getDisplayName, getName, setDisplayName, setName
-
Constructor Details
-
TableStyle
public TableStyle()Initializes a new instance of the TableStyle class. -
TableStyle
Initializes a new instance of the TableStyle class.- Parameters:
name- the name
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current TableStyle object to its equivalent string representation. -
getAlignment
Gets the horizontal alignment of a table.- Returns:
- the alignment
-
setAlignment
Sets the horizontal alignment of a table.- Parameters:
alignment- the new alignment
-
getWidth
Gets the fixed width of a table.- Returns:
- the width
-
setWidth
Sets the fixed width of a table.- Parameters:
width- the new width
-
getRelativeWidth
Gets the width of a table relative to the width of the area that the table is in.- Returns:
- the relative width
-
setRelativeWidth
Sets the width of a table relative to the width of the area that the table is in.- Parameters:
relativeWidth- the new relative width
-
getBackgroundColor
Gets the background color for table.- Returns:
- the background color
-
setBackgroundColor
Sets the background color for table.- Parameters:
backgroundColor- the new background color
-
getMargin
Gets the margin.- Returns:
- the margin
-
setMargin
Sets the margin.- Parameters:
margin- the new margin
-
getLeftMargin
Gets the left margin.- Returns:
- the left margin
-
setLeftMargin
Sets the left margin.- Parameters:
leftMargin- the new left margin
-
getRightMargin
Gets the right margin.- Returns:
- the right margin
-
setRightMargin
Sets the right margin.- Parameters:
rightMargin- the new right margin
-
getTopMargin
Gets the top margin.- Returns:
- the top margin
-
setTopMargin
Sets the top margin.- Parameters:
topMargin- the new top margin
-
getBottomMargin
Gets the bottom margin.- Returns:
- the bottom margin
-
setBottomMargin
Sets the bottom margin.- Parameters:
bottomMargin- the new bottom margin
-
isDisplay
public boolean isDisplay()Specifies whether a table is displayed.- Returns:
- true, if is display
-
setDisplay
public void setDisplay(boolean display)Specifies whether a table is displayed.- Parameters:
display- the new display
-
getWritingMode
Gets the writing mode of the table.- Returns:
- the writing mode
-
setWritingMode
Sets the writing mode of the table.- Parameters:
writingMode- the new writing mode
-
getBorderModel
Specifies what border model to use when creating a table with a border.- Returns:
- the border model
-
setBorderModel
Specifies what border model to use when creating a table with a border.- Parameters:
borderModel- the new border model
-
isEnableBreakBetweenRows
public boolean isEnableBreakBetweenRows()Specifies that a page break may occur inside a table.- Returns:
- true, if is enable break between rows
-
setEnableBreakBetweenRows
public void setEnableBreakBetweenRows(boolean enableBreakBetweenRows)Specifies that a page break may occur inside a table.- Parameters:
enableBreakBetweenRows- the new enable break between rows
-
getKeepTogether
Gets the keep together.- Returns:
- the keep together
-
setKeepTogether
Sets the keep together.- Parameters:
keepTogether- the new keep together
-
getShadow
Specifies if enables or disables a three-dimensional shadow for a three-dimensional object.- Returns:
- the shadow
-
setShadow
Specifies if enables or disables a three-dimensional shadow for a three-dimensional object.- Parameters:
shadow- the new shadow
-
getBreakBefore
Gets the break before table.- Returns:
- the break before
-
setBreakBefore
Sets the break before table.- Parameters:
breakBefore- the new break before
-
getBreakAfter
Gets the break after table.- Returns:
- the break after
-
setBreakAfter
Sets the break after table.- Parameters:
breakAfter- the new break after
-
getPageNumber
Gets the page number that should be used for a new page when either a paragraph or table style specifies a master page that should be applied beginning from the start of a paragraph or table.- Returns:
- the page number
-
setPageNumber
Sets the page number that should be used for a new page when either a paragraph or table style specifies a master page that should be applied beginning from the start of a paragraph or table.- Parameters:
pageNumber- the new page number
-
getBackgroundImage
Gets the background image.- Returns:
- the background image
-
setBackgroundImage
Sets the background image.- Parameters:
backgroundImage- the new background image
-