Package com.vladsch.flexmark.util.format
Class TableRow
- java.lang.Object
-
- com.vladsch.flexmark.util.format.TableRow
-
- Direct Known Subclasses:
TableCaptionRow,TableSeparatorRow
public class TableRow extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected intafterOffsetprotected intbeforeOffsetprotected List<TableCell>cells
-
Constructor Summary
Constructors Constructor Description TableRow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddColumn(int index)voidappendColumns(int count)voidappendColumns(int count, TableCell tableCell)intcolumnOf(int index)IntegercolumnOfOrNull(Integer index)TableCelldefaultCell()voiddeleteColumns(int column, int count)TableRowexpandTo(int column)TableRowexpandTo(int column, TableCell cell)voidforAllCells(int startIndex, int count, TableCellConsumer consumer)voidforAllCells(int startIndex, int count, TableCellManipulator manipulator)voidforAllCells(int startIndex, TableCellConsumer consumer)voidforAllCells(int startIndex, TableCellManipulator manipulator)voidforAllCells(TableCellConsumer consumer)voidforAllCells(TableCellManipulator manipulator)intgetAfterOffset()intgetBeforeOffset()List<TableCell>getCells()intgetColumns()intgetSpannedColumns()intgetTotalColumns()MarkdownTable.IndexSpanOffsetindexOf(int column)MarkdownTable.IndexSpanOffsetindexOfOrNull(Integer column)voidinsertColumns(int column, int count)voidinsertColumns(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 == 1booleanisEmpty()booleanisEmptyColumn(int column)voidmoveColumn(int fromColumn, int toColumn)voidnormalize()voidnormalizeIfNeeded()voidset(int column, TableCell cell)voidsetAfterOffset(int afterOffset)voidsetBeforeOffset(int beforeOffset)StringtoString()
-
-
-
Method Detail
-
forAllCells
public void forAllCells(TableCellConsumer consumer)
-
forAllCells
public void forAllCells(int startIndex, TableCellConsumer consumer)
-
forAllCells
public void forAllCells(int startIndex, int count, TableCellConsumer consumer)
-
forAllCells
public void forAllCells(TableCellManipulator manipulator)
-
forAllCells
public void forAllCells(int startIndex, TableCellManipulator manipulator)
-
forAllCells
public void forAllCells(int startIndex, int count, TableCellManipulator manipulator)
-
getColumns
public int getColumns()
-
getTotalColumns
public int getTotalColumns()
-
getSpannedColumns
public int getSpannedColumns()
-
getBeforeOffset
public int getBeforeOffset()
-
setBeforeOffset
public void setBeforeOffset(int beforeOffset)
-
getAfterOffset
public int getAfterOffset()
-
setAfterOffset
public void setAfterOffset(int afterOffset)
-
columnOf
public int columnOf(int index)
-
appendColumns
public void appendColumns(int count)
-
appendColumns
public void appendColumns(int count, TableCell tableCell)
-
defaultCell
public TableCell defaultCell()
-
addColumn
public void addColumn(int index)
-
insertColumns
public void insertColumns(int column, int count)- Parameters:
column- column index before which to insertcount- number of columns to insert
-
insertColumns
public 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- Parameters:
column- column index before which to insertcount- number of columns to inserttableCell- table cell to insert, null for default
-
deleteColumns
public void deleteColumns(int column, int count)- Parameters:
column- column index before which to insertcount- number of columns to insert
-
moveColumn
public void moveColumn(int fromColumn, int toColumn)
-
expandTo
public TableRow expandTo(int column)
-
set
public void set(int column, TableCell cell)
-
isEmptyColumn
public boolean isEmptyColumn(int column)
-
isEmpty
public boolean isEmpty()
-
indexOf
public MarkdownTable.IndexSpanOffset indexOf(int column)
-
indexOfOrNull
public MarkdownTable.IndexSpanOffset indexOfOrNull(Integer column)
-
normalizeIfNeeded
public void normalizeIfNeeded()
-
normalize
public void normalize()
-
-