public class XMLTableCell extends org.docgene.model.AbstractStyledElement implements ParagraphElementParent, org.docgene.model.Alignment
TYPE_NONE
Constructor and Description |
---|
XMLTableCell() |
Modifier and Type | Method and Description |
---|---|
void |
addElement(ParagraphElement element)
Add an element.
|
char |
getAlignment()
Return the alignment of the cell.
|
java.lang.String |
getColor()
Return the cell background color.
|
int |
getColSpan()
Return the cell column span.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.util.List<ParagraphElement> |
getElements()
Return the list of elements.
|
int |
getRowIndex()
Return the index of the cell in the row.
|
int |
getRowSpan()
Return the cell row span.
|
boolean |
hasAlignment()
Return true if the cell is aligned.
|
void |
setAlignment(char align)
Set the alignment of the cell.
|
void |
setColor(java.lang.String color)
Set the cell background color.
|
void |
setColSpan(int colspan)
Set the cell column span.
|
void |
setElements(java.util.List<ParagraphElement> elements)
Set the list of elements.
|
void |
setRowSpan(int rowspan)
Set the cell row span.
|
getCustomStyles, getInlinedStyle, setCustomStyles, setInlinedStyle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countElements, getElement, getFirstElement, getLastElement, hasElements, isEmpty
getStyle, hasInlinedStyle, setCustomStyles
public java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public int getRowIndex()
public boolean hasAlignment()
public void setAlignment(char align)
setAlignment
in interface org.docgene.model.Alignment
align
- the alignmentAlignment
public char getAlignment()
getAlignment
in interface org.docgene.model.Alignment
Alignment
public void setColor(java.lang.String color)
color
- the background colorpublic java.lang.String getColor()
public void setRowSpan(int rowspan)
rowspan
- the cell row spanpublic int getRowSpan()
public void setColSpan(int colspan)
colspan
- the column spanpublic int getColSpan()
public void setElements(java.util.List<ParagraphElement> elements)
setElements
in interface ParagraphElementParent
elements
- the list of elementspublic void addElement(ParagraphElement element)
addElement
in interface ParagraphElementParent
element
- the elementpublic java.util.List<ParagraphElement> getElements()
getElements
in interface ParagraphElementParent
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence