public class Table extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Table.TableCell |
static class |
Table.TableRow |
static class |
Table.TableSection |
| Modifier and Type | Field and Description |
|---|---|
CellAlignment[] |
alignments |
Table.TableSection |
body |
int[] |
columnWidths |
Table.TableSection |
heading |
TableFormatOptions |
options |
Table.TableSection |
separator |
| Constructor and Description |
|---|
Table(DataHolder options) |
Table(TableFormatOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCell(Table.TableCell cell) |
void |
appendTable(FormattingAppendable out) |
BasedSequence |
cellText(CharSequence chars,
boolean isHeader,
int width,
CellAlignment alignment,
Ref<Integer> accumulatedDelta) |
void |
finalizeTable() |
int |
getBodyColumns() |
int |
getBodyRows() |
BasedSequence |
getCaption() |
BasedSequence |
getCaptionClose() |
BasedSequence |
getCaptionOpen() |
int |
getHeadingColumns() |
int |
getHeadingRows() |
int |
getMaxColumns() |
int |
getMinColumns() |
int |
getSeparatorColumns() |
boolean |
isHeading() |
boolean |
isSeparator() |
void |
nextRow() |
void |
setCaption(CharSequence caption) |
void |
setCaption(CharSequence captionOpen,
CharSequence caption,
CharSequence captionClose) |
void |
setHeading(boolean heading) |
void |
setSeparator(boolean separator) |
int |
spanFixedWidth(BitSet unfixedColumns,
int col,
int colSpan) |
int |
spanWidth(int col,
int colSpan) |
public final Table.TableSection heading
public final Table.TableSection separator
public final Table.TableSection body
public final TableFormatOptions options
public CellAlignment[] alignments
public int[] columnWidths
public Table(DataHolder options)
public Table(TableFormatOptions options)
public boolean isHeading()
public void setHeading(boolean heading)
public boolean isSeparator()
public BasedSequence getCaptionOpen()
public BasedSequence getCaption()
public void setCaption(CharSequence caption)
public void setCaption(CharSequence captionOpen, CharSequence caption, CharSequence captionClose)
public BasedSequence getCaptionClose()
public void setSeparator(boolean separator)
public void nextRow()
public int getHeadingRows()
public int getBodyRows()
public int getHeadingColumns()
public int getSeparatorColumns()
public int getBodyColumns()
public void addCell(Table.TableCell cell)
public int getMinColumns()
public int getMaxColumns()
public BasedSequence cellText(CharSequence chars, boolean isHeader, int width, CellAlignment alignment, Ref<Integer> accumulatedDelta)
public int spanWidth(int col,
int colSpan)
public int spanFixedWidth(BitSet unfixedColumns, int col, int colSpan)
public void finalizeTable()
public void appendTable(FormattingAppendable out)
Copyright © 2018. All rights reserved.