public class MarkdownTable extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MarkdownTable.IndexSpanOffset |
| Modifier and Type | Field and Description |
|---|---|
TableSection |
body |
TableSection |
caption |
TableSection |
header |
TableFormatOptions |
options |
TableSection |
separator |
| Constructor and Description |
|---|
MarkdownTable(DataHolder options) |
MarkdownTable(TableFormatOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCell(TableCell cell) |
boolean |
addTrackedOffset(int offset) |
boolean |
addTrackedOffset(int offset,
boolean afterSpace) |
boolean |
addTrackedOffset(int offset,
boolean afterSpace,
boolean afterDelete) |
boolean |
addTrackedOffset(int offset,
Character c,
boolean afterDelete) |
static void |
appendFormattedCaption(LineFormattingAppendable out,
BasedSequence caption,
TableFormatOptions options) |
void |
appendTable(LineFormattingAppendable out) |
void |
deleteColumns(int column,
int count) |
void |
deleteRows(int rowIndex,
int count) |
void |
fillMissingColumns() |
void |
fillMissingColumns(Integer minColumn) |
void |
finalizeTable() |
void |
forAllBodyRows(int startIndex,
int count,
TableRowManipulator manipulator) |
void |
forAllBodyRows(int startIndex,
TableRowManipulator manipulator) |
void |
forAllBodyRows(TableRowManipulator manipulator) |
void |
forAllContentRows(int startIndex,
int count,
TableRowManipulator manipulator) |
void |
forAllContentRows(int startIndex,
TableRowManipulator manipulator) |
void |
forAllContentRows(TableRowManipulator manipulator) |
void |
forAllHeaderRows(int startIndex,
int count,
TableRowManipulator manipulator) |
void |
forAllHeaderRows(int startIndex,
TableRowManipulator manipulator) |
void |
forAllHeaderRows(TableRowManipulator manipulator) |
void |
forAllRows(int startIndex,
int count,
TableRowManipulator manipulator) |
void |
forAllRows(int startIndex,
TableRowManipulator manipulator) |
void |
forAllRows(TableRowManipulator manipulator) |
void |
forAllSectionRows(int startIndex,
int count,
TableRowManipulator manipulator) |
void |
forAllSectionRows(int startIndex,
TableRowManipulator manipulator) |
void |
forAllSectionRows(TableRowManipulator manipulator) |
static String |
formattedCaption(BasedSequence caption,
TableFormatOptions options) |
List<TableRow> |
getAllContentRows() |
int |
getAllContentRowsCount() |
List<TableRow> |
getAllRows() |
int |
getAllRowsCount() |
TableSection |
getAllRowsSection(int index) |
List<TableRow> |
getAllSectionRows() |
int |
getAllSectionsRowsCount() |
int |
getBodyRowCount() |
BasedSequence |
getCaption() |
TableCell |
getCaptionCell() |
int |
getCaptionRowCount() |
TableCellOffsetInfo |
getCellOffsetInfo(int offset) |
boolean |
getHaveCaption() |
boolean |
getHeader() |
int |
getHeadingRowCount() |
int |
getMaxBodyColumns() |
int |
getMaxColumns() |
int |
getMaxColumnsWithoutColumns(boolean withSeparator,
int... skipColumns) |
int |
getMaxColumnsWithoutRows(boolean withSeparator,
int... skipRows) |
int |
getMaxHeadingColumns() |
int |
getMaxSeparatorColumns() |
int |
getMinColumns() |
int |
getMinColumnsWithoutColumns(boolean withSeparator,
int... skipColumns) |
int |
getMinColumnsWithoutRows(boolean withSeparator,
int... skipRows) |
int |
getSeparatorRowCount() |
int |
getTableStartOffset() |
Map<Integer,Integer> |
getTrackedOffsets() |
void |
insertColumns(int column,
int count) |
void |
insertRows(int rowIndex,
int count) |
boolean |
isAllRowsEmptyAt(int rowIndex)
Test a row for having all empty columns
|
boolean |
isAllRowsSeparator(int index) |
boolean |
isContentRowsEmptyAt(int rowIndex)
Test a row for having all empty columns
|
boolean |
isEmptyColumn(int column)
Test all rows for having given column empty.
|
boolean |
isSeparator() |
void |
moveColumn(int fromColumn,
int toColumn) |
void |
nextRow() |
void |
normalize() |
void |
setCaption(CharSequence caption) |
void |
setCaptionCell(TableCell captionCell) |
void |
setCaptionWithMarkers(Node tableCellNode,
CharSequence captionOpen,
CharSequence caption,
CharSequence captionClose) |
void |
setHeader(boolean header) |
void |
setSeparator(boolean separator) |
String |
toString() |
public final TableSection header
public final TableSection separator
public final TableSection body
public final TableSection caption
public TableFormatOptions options
public MarkdownTable(DataHolder options)
public MarkdownTable(TableFormatOptions options)
public TableCell getCaptionCell()
public void setCaptionCell(TableCell captionCell)
public BasedSequence getCaption()
public void setCaption(CharSequence caption)
public void setCaptionWithMarkers(Node tableCellNode, CharSequence captionOpen, CharSequence caption, CharSequence captionClose)
public int getHeadingRowCount()
public int getSeparatorRowCount()
public int getBodyRowCount()
public int getCaptionRowCount()
public int getMaxHeadingColumns()
public int getMaxSeparatorColumns()
public int getMaxBodyColumns()
public boolean getHaveCaption()
public int getMinColumns()
public int getMaxColumns()
public int getMinColumnsWithoutColumns(boolean withSeparator,
int... skipColumns)
public int getMaxColumnsWithoutColumns(boolean withSeparator,
int... skipColumns)
public int getMinColumnsWithoutRows(boolean withSeparator,
int... skipRows)
public int getMaxColumnsWithoutRows(boolean withSeparator,
int... skipRows)
public int getTableStartOffset()
public TableCellOffsetInfo getCellOffsetInfo(int offset)
public boolean addTrackedOffset(int offset)
public boolean addTrackedOffset(int offset,
boolean afterSpace)
public boolean addTrackedOffset(int offset,
boolean afterSpace,
boolean afterDelete)
public boolean addTrackedOffset(int offset,
Character c,
boolean afterDelete)
public boolean isAllRowsSeparator(int index)
public TableSection getAllRowsSection(int index)
public int getAllRowsCount()
public int getAllContentRowsCount()
public int getAllSectionsRowsCount()
public void forAllRows(TableRowManipulator manipulator)
public void forAllRows(int startIndex,
TableRowManipulator manipulator)
public void forAllRows(int startIndex,
int count,
TableRowManipulator manipulator)
public void forAllContentRows(TableRowManipulator manipulator)
public void forAllContentRows(int startIndex,
TableRowManipulator manipulator)
public void forAllContentRows(int startIndex,
int count,
TableRowManipulator manipulator)
public void forAllSectionRows(TableRowManipulator manipulator)
public void forAllSectionRows(int startIndex,
TableRowManipulator manipulator)
public void forAllSectionRows(int startIndex,
int count,
TableRowManipulator manipulator)
public void forAllHeaderRows(TableRowManipulator manipulator)
public void forAllHeaderRows(int startIndex,
TableRowManipulator manipulator)
public void forAllHeaderRows(int startIndex,
int count,
TableRowManipulator manipulator)
public void forAllBodyRows(TableRowManipulator manipulator)
public void forAllBodyRows(int startIndex,
TableRowManipulator manipulator)
public void forAllBodyRows(int startIndex,
int count,
TableRowManipulator manipulator)
public void deleteRows(int rowIndex,
int count)
public void insertRows(int rowIndex,
int count)
public void insertColumns(int column,
int count)
public void deleteColumns(int column,
int count)
public void moveColumn(int fromColumn,
int toColumn)
public boolean isEmptyColumn(int column)
column - index in allRows listpublic boolean isAllRowsEmptyAt(int rowIndex)
rowIndex - index in allRows listpublic boolean isContentRowsEmptyAt(int rowIndex)
rowIndex - index in allRows listpublic boolean getHeader()
public void setHeader(boolean header)
public boolean isSeparator()
public void setSeparator(boolean separator)
public void nextRow()
public void addCell(TableCell cell)
cell - cell to addpublic void normalize()
public void finalizeTable()
public void fillMissingColumns()
public void fillMissingColumns(Integer minColumn)
public void appendTable(LineFormattingAppendable out)
public static void appendFormattedCaption(LineFormattingAppendable out, BasedSequence caption, TableFormatOptions options)
public static String formattedCaption(BasedSequence caption, TableFormatOptions options)
Copyright © 2019. All rights reserved.