Package com.vladsch.flexmark.util.format
Class TableRow
java.lang.Object
com.vladsch.flexmark.util.format.TableRow
- Direct Known Subclasses:
TableCaptionRow
,TableSeparatorRow
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumn
(int index) void
appendColumns
(int count) void
appendColumns
(int count, TableCell tableCell) int
columnOf
(int index) columnOfOrNull
(Integer index) void
deleteColumns
(int column, int count) private CharSequence
expandTo
(int column) (package private) void
fillMissingColumns
(Integer minColumn, int maxColumns) 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
int
getCells()
int
int
int
indexOf
(int column) 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 == 1boolean
isEmpty()
boolean
isEmptyColumn
(int column) void
moveColumn
(int fromColumn, int toColumn) void
void
void
void
setAfterOffset
(int afterOffset) void
setBeforeOffset
(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
-