Class TableRow
java.lang.Object
com.vladsch.flexmark.util.format.TableRow
- Direct Known Subclasses:
TableCaptionRow, TableSeparatorRow
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(int index) voidappendColumns(int count) voidappendColumns(int count, TableCell tableCell) intcolumnOf(int index) columnOfOrNull(Integer index) voiddeleteColumns(int column, int count) private CharSequenceexpandTo(int column) (package private) voidfillMissingColumns(Integer minColumn, int maxColumns) 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) intintgetCells()intintintindexOf(int column) indexOfOrNull(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) voidvoidvoidvoidsetAfterOffset(int afterOffset) voidsetBeforeOffset(int beforeOffset) toString()
-
Field Details
-
cells
-
beforeOffset
protected int beforeOffset -
afterOffset
protected int afterOffset -
normalized
private boolean normalized
-
-
Constructor Details
-
TableRow
public TableRow()
-
-
Method Details
-
getCells
-
forAllCells
-
forAllCells
-
forAllCells
-
forAllCells
-
forAllCells
-
forAllCells
-
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) -
columnOfOrNull
-
appendColumns
public void appendColumns(int count) -
appendColumns
-
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
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
-
expandTo
-
fillMissingColumns
-
set
-
isEmptyColumn
public boolean isEmptyColumn(int column) -
isEmpty
public boolean isEmpty() -
indexOf
-
indexOfOrNull
-
normalizeIfNeeded
public void normalizeIfNeeded() -
normalize
public void normalize() -
dumpCells
-
toString
-