public class TableModel extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TableModel.TrFinder |
Modifier and Type | Field and Description |
---|---|
protected int |
col |
protected boolean |
drawTableBorder |
protected Style |
effectiveTableStyle |
protected int |
headerMaxRow |
protected int |
row |
protected List<TableModelRow> |
rows
A list of rows
|
protected String |
styleId |
protected Tbl |
tbl |
protected TblGrid |
tblGrid |
protected TblPr |
tblPr
Table properties are represented using the
docx model.
|
protected int |
width |
Constructor and Description |
---|
TableModel() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCell(TableModelCell cell) |
void |
addCell(Tc tc)
Add a new cell to this table
|
protected void |
addDummyCell(int colSpan,
boolean isBefore,
boolean isAfter) |
void |
build(Tbl tbl) |
protected int |
calcTableWidth() |
String |
debugStr() |
TableModelCell |
getCell(int row,
int col) |
int |
getColCount() |
String |
getColName(int col) |
Style |
getEffectiveTableStyle() |
protected JAXBElement<?> |
getElement(List<JAXBElement<?>> cnfStyleOrDivIdOrGridBefore,
String localName) |
protected int |
getGridAfter(Tr tr) |
protected int |
getGridBefore(Tr tr) |
int |
getHeaderMaxRow() |
List<TableModelRow> |
getRows() |
String |
getStyleId() |
int |
getTableWidth() |
TblGrid |
getTblGrid() |
TblPr |
getTblPr() |
protected void |
handleRow(Tr tr,
int r) |
boolean |
isBorderConflictResolutionRequired()
If borderConflictResolutionRequired is required, we need
to set this explicitly, because in CSS, 'separate' is
the default.
|
boolean |
isDrawTableBorders() |
protected boolean |
isHeaderRow(Tr tr) |
void |
resetIndexes()
Reset row and col.
|
void |
setBorderConflictResolutionRequired(boolean borderConflictResolutionRequired) |
void |
startRow(Tr tr) |
protected List<TableModelRow> rows
protected int headerMaxRow
protected int row
protected int col
protected int width
protected boolean drawTableBorder
protected String styleId
protected Style effectiveTableStyle
protected TblPr tblPr
protected TblGrid tblGrid
protected Tbl tbl
public String getStyleId()
public Style getEffectiveTableStyle()
public TblPr getTblPr()
public TblGrid getTblGrid()
public boolean isBorderConflictResolutionRequired()
public boolean isDrawTableBorders()
public int getTableWidth()
public void resetIndexes()
public void startRow(Tr tr)
public void addCell(Tc tc)
protected void addDummyCell(int colSpan, boolean isBefore, boolean isAfter)
protected void addCell(TableModelCell cell)
public TableModelCell getCell(int row, int col)
public String getColName(int col)
public int getColCount()
public List<TableModelRow> getRows()
public int getHeaderMaxRow()
public void build(Tbl tbl)
protected void handleRow(Tr tr, int r)
protected boolean isHeaderRow(Tr tr)
protected int getGridAfter(Tr tr)
protected int getGridBefore(Tr tr)
protected JAXBElement<?> getElement(List<JAXBElement<?>> cnfStyleOrDivIdOrGridBefore, String localName)
protected int calcTableWidth()
public String debugStr()
public void setBorderConflictResolutionRequired(boolean borderConflictResolutionRequired)
Copyright © 2007-2019. All Rights Reserved.