public class TableCellStyle extends Object implements FontFaceContainerStyle
| Modifier and Type | Field and Description |
|---|---|
static TableCellStyle |
DEFAULT_CELL_STYLE
This is the default cell style: left and top align, no wrap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToElements(OdsElements odsElements)
Add this to OdsElements
|
void |
appendXMLContent(XMLUtil util,
Appendable appendable)
Write the XML format for this object.
|
static TableCellStyleBuilder |
builder(String name)
Create a builder
|
DataStyle |
getDataStyle() |
ObjectStyleFamily |
getFamily()
19.476 style:family
|
FontFace |
getFontFace() |
String |
getKey()
The identifier of this style is built on the name (19.498 style:name) and the family
|
String |
getName()
Get the name of this object.
|
TableCellStyle |
getParentCellStyle() |
String |
getRealName() |
boolean |
hasParent() |
boolean |
hasTextAlign() |
boolean |
isHidden() |
TableCellStyleBuilder |
toBuilder(String newName) |
public static final TableCellStyle DEFAULT_CELL_STYLE
public static TableCellStyleBuilder builder(String name)
name - the name of the builderpublic void addToElements(OdsElements odsElements)
AddableToOdsElementsaddToElements in interface AddableToOdsElementsodsElements - the OdsElements instance where to add this.public void appendXMLContent(XMLUtil util, Appendable appendable) throws IOException
XMLConvertibleappendXMLContent in interface XMLConvertibleutil - a helper objectappendable - the appendable to append data toIOException - if the style can't be addedpublic DataStyle getDataStyle()
public ObjectStyleFamily getFamily()
ObjectStylegetFamily in interface ObjectStylepublic String getKey()
ObjectStylegetKey in interface ObjectStylepublic String getName()
NamedObjectgetName in interface NamedObjectpublic String getRealName()
public boolean hasParent()
public boolean isHidden()
public TableCellStyle getParentCellStyle()
public FontFace getFontFace()
getFontFace in interface FontFaceContainerStylepublic boolean hasTextAlign()
public TableCellStyleBuilder toBuilder(String newName)
newName - the new name of the styleCopyright © 2016–2021. All rights reserved.