public class XMLTableRow extends org.docgene.model.AbstractStyledElement implements org.docgene.model.conditions.ConditionElement<XMLTableRow>
TYPE_NONE
Constructor and Description |
---|
XMLTableRow() |
Modifier and Type | Method and Description |
---|---|
int |
addCell(XMLTableCell cell)
Add a cell to the table row.
|
XMLTableCell |
addEmptyCell()
Add an empty cell to the table row.
|
int |
countCells()
Return the number of cells.
|
short |
getBottomBorderType()
Return the bottom border type.
|
XMLTableCell |
getCell(int index)
Return the cell at a specified index.
|
java.util.List<XMLTableCell> |
getCells()
Return the cells in the table row.
|
java.lang.String |
getColor()
Return the row background color.
|
java.util.List<XMLTableRow> |
getConditionElementsList()
Return the list of elements for a condition.
|
XMLTableRow |
getConditionUniqueElement()
Return the unique element for a condition.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
short |
getTopBorderType()
Return the top border type.
|
int |
getWidth(int cellIndex)
Return the specified width for one cell.
|
java.util.List<java.lang.Integer> |
getWidths()
Return the row specified widths for its cells.
|
boolean |
hasBorders()
Return true if the table cells of the row have borders.
|
boolean |
hasHorizontalBorders()
Return true if the table cells of the row have horizontal borders.
|
boolean |
hasNoBorders()
Return true if the table cells of the row have no borders.
|
boolean |
hasUniqueElement()
Return true.
|
boolean |
hasVerticalBorders()
Return true if the table cells of the row have vertical borders.
|
boolean |
hasWidth(int cellIndex)
Return true if the row has a specified width for one cell.
|
boolean |
hasWidths()
Return true if the row has specified widths for its cells.
|
boolean |
isRelativeWidth()
Return true if the row widths are relative (in %).
|
void |
setBorders(boolean hasBorders)
Set if the table cells of the row have borders.
|
void |
setBottomBorderType(short borderType)
Set the bottom border type.
|
void |
setColor(java.lang.String color)
Set the row background color.
|
void |
setHorizontalBorders(boolean hasHorizontalBorders)
Set if the table cells of the row have horizontal borders.
|
void |
setTopBorderType(short borderType)
Set the top border type.
|
void |
setVerticalBorders(boolean hasVerticalBorders)
Set if the table cells of the row have vertical borders.
|
getCustomStyles, getInlinedStyle, setCustomStyles, setInlinedStyle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStyle, hasInlinedStyle, setCustomStyles
public java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public void setColor(java.lang.String color)
color
- the background colorpublic java.lang.String getColor()
public void setBorders(boolean hasBorders)
hasBorders
- true if the table cells of the row have borderspublic boolean hasBorders()
public boolean hasNoBorders()
public void setHorizontalBorders(boolean hasHorizontalBorders)
hasHorizontalBorders
- true if the table cells of the row have horizontal borderspublic boolean hasHorizontalBorders()
public void setVerticalBorders(boolean hasVerticalBorders)
hasVerticalBorders
- true if the table cells of the row have vertical borderspublic boolean hasVerticalBorders()
public void setTopBorderType(short borderType)
borderType
- the top border typeRowBorderType
public short getTopBorderType()
RowBorderType
public void setBottomBorderType(short borderType)
borderType
- the bottom border typeRowBorderType
public short getBottomBorderType()
RowBorderType
public int addCell(XMLTableCell cell)
cell
- the cellpublic XMLTableCell addEmptyCell()
public java.util.List<XMLTableCell> getCells()
public XMLTableCell getCell(int index)
index
- the indexpublic int countCells()
public boolean isRelativeWidth()
public java.util.List<java.lang.Integer> getWidths()
public int getWidth(int cellIndex)
cellIndex
- the cell indexpublic boolean hasWidth(int cellIndex)
cellIndex
- the cell indexpublic boolean hasWidths()
public boolean hasUniqueElement()
hasUniqueElement
in interface org.docgene.model.conditions.ConditionElement<XMLTableRow>
public XMLTableRow getConditionUniqueElement()
getConditionUniqueElement
in interface org.docgene.model.conditions.ConditionElement<XMLTableRow>
public java.util.List<XMLTableRow> getConditionElementsList()
getConditionElementsList
in interface org.docgene.model.conditions.ConditionElement<XMLTableRow>
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence