public class TableRow extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
afterOffset |
protected int |
beforeOffset |
protected List<TableCell> |
cells |
| Constructor and Description |
|---|
TableRow() |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(int index) |
void |
appendColumns(int count) |
void |
appendColumns(int count,
TableCell tableCell) |
int |
columnOf(int index) |
Integer |
columnOfOrNull(Integer index) |
TableCell |
defaultCell() |
void |
deleteColumns(int column,
int count) |
TableRow |
expandTo(int column) |
TableRow |
expandTo(int column,
TableCell cell) |
void |
forAllCells(int startIndex,
int count,
TableCellConsumer consumer) |
void |
forAllCells(int startIndex,
int count,
TableCellManipulator manipulator) |
void |
forAllCells(int startIndex,
TableCellConsumer consumer) |
void |
forAllCells(int startIndex,
TableCellManipulator manipulator) |
void |
forAllCells(TableCellConsumer consumer) |
void |
forAllCells(TableCellManipulator manipulator) |
int |
getAfterOffset() |
int |
getBeforeOffset() |
List<TableCell> |
getCells() |
int |
getColumns() |
int |
getSpannedColumns() |
int |
getTotalColumns() |
MarkdownTable.IndexSpanOffset |
indexOf(int column) |
MarkdownTable.IndexSpanOffset |
indexOfOrNull(Integer column) |
void |
insertColumns(int column,
int count) |
void |
insertColumns(int column,
int count,
TableCell tableCell)
NOTE: inserting into a cell span has the effect of expanding the span if the cell text is blank or insert count > 1
or splitting the span if it is not blank and count == 1
|
boolean |
isEmpty() |
boolean |
isEmptyColumn(int column) |
void |
moveColumn(int fromColumn,
int toColumn) |
void |
normalize() |
void |
normalizeIfNeeded() |
void |
set(int column,
TableCell cell) |
void |
setAfterOffset(int afterOffset) |
void |
setBeforeOffset(int beforeOffset) |
String |
toString() |
public void forAllCells(TableCellConsumer consumer)
public void forAllCells(int startIndex,
TableCellConsumer consumer)
public void forAllCells(int startIndex,
int count,
TableCellConsumer consumer)
public void forAllCells(TableCellManipulator manipulator)
public void forAllCells(int startIndex,
TableCellManipulator manipulator)
public void forAllCells(int startIndex,
int count,
TableCellManipulator manipulator)
public int getColumns()
public int getTotalColumns()
public int getSpannedColumns()
public int getBeforeOffset()
public void setBeforeOffset(int beforeOffset)
public int getAfterOffset()
public void setAfterOffset(int afterOffset)
public int columnOf(int index)
public void appendColumns(int count)
public void appendColumns(int count,
TableCell tableCell)
public TableCell defaultCell()
public void addColumn(int index)
public void insertColumns(int column,
int count)
column - column index before which to insertcount - number of columns to insertpublic void insertColumns(int column,
int count,
TableCell tableCell)
column - column index before which to insertcount - number of columns to inserttableCell - table cell to insert, null for defaultpublic void deleteColumns(int column,
int count)
column - column index before which to insertcount - number of columns to insertpublic void moveColumn(int fromColumn,
int toColumn)
public TableRow expandTo(int column)
public void set(int column,
TableCell cell)
public boolean isEmptyColumn(int column)
public boolean isEmpty()
public MarkdownTable.IndexSpanOffset indexOf(int column)
public MarkdownTable.IndexSpanOffset indexOfOrNull(Integer column)
public void normalizeIfNeeded()
public void normalize()
Copyright © 2020. All rights reserved.