Class RowStyle
java.lang.Object
com.independentsoft.office.odf.styles.Style
com.independentsoft.office.odf.styles.BaseStyle
com.independentsoft.office.odf.styles.RowStyle
Represents the style of a row.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the background color for cell.Gets the background image.Gets the break after.Gets the break before.Gets the fixed row height.Gets the keep together.Gets the fixed minimum height for a row.voidsetBackgroundColor(String backgroundColor)Sets the background color for cell.voidsetBackgroundImage(BackgroundImage backgroundImage)Sets the background image.voidsetBreakAfter(Break breakAfter)Sets the break after.voidsetBreakBefore(Break breakBefore)Sets the break before.voidSets the fixed row height.voidsetKeepTogether(KeepTogether keepTogether)Sets the keep together.voidsetMinHeight(Size minHeight)Sets the fixed minimum height for a row.voidsetUseOptimalHeight(boolean useOptimalHeight)Specifies that a row height should be recalculated automatically if content in the row changes.toString()Converts the value of the current RowStyle object to its equivalent string representation.booleanSpecifies that a row height should be recalculated automatically if content in the row changes.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
-
RowStyle
public RowStyle()Initializes a new instance of the RowStyle class. -
RowStyle
Initializes a new instance of the RowStyle 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 RowStyle object to its equivalent string representation. -
getHeight
Gets the fixed row height.- Returns:
- the height
-
setHeight
Sets the fixed row height.- Parameters:
height- the new height
-
getMinHeight
Gets the fixed minimum height for a row.- Returns:
- the min height
-
setMinHeight
Sets the fixed minimum height for a row.- Parameters:
minHeight- the new min height
-
useOptimalHeight
public boolean useOptimalHeight()Specifies that a row height should be recalculated automatically if content in the row changes.- Returns:
- true, if successful
-
setUseOptimalHeight
public void setUseOptimalHeight(boolean useOptimalHeight)Specifies that a row height should be recalculated automatically if content in the row changes.- Parameters:
useOptimalHeight- the new use optimal height
-
getBackgroundColor
Gets the background color for cell.- Returns:
- the background color
-
setBackgroundColor
Sets the background color for cell.- Parameters:
backgroundColor- the new background color
-
getBreakBefore
Gets the break before.- Returns:
- the break before
-
setBreakBefore
Sets the break before.- Parameters:
breakBefore- the new break before
-
getBreakAfter
Gets the break after.- Returns:
- the break after
-
setBreakAfter
Sets the break after.- Parameters:
breakAfter- the new break after
-
getKeepTogether
Gets the keep together.- Returns:
- the keep together
-
setKeepTogether
Sets the keep together.- Parameters:
keepTogether- the new keep together
-
getBackgroundImage
Gets the background image.- Returns:
- the background image
-
setBackgroundImage
Sets the background image.- Parameters:
backgroundImage- the new background image
-