public class TextTable extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
addRowNumbering |
protected boolean |
headless |
protected RowSorter<?> |
rowSorter |
protected List<SeparatorPolicy> |
separatorPolicies |
protected TableModel |
tableModel |
| Constructor and Description |
|---|
TextTable(String[] columnNames,
Object[][] data) |
TextTable(TableModel tableModel) |
TextTable(TableModel tableModel,
boolean addNumbering) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSeparatorPolicy(SeparatorPolicy separatorPolicy) |
TableModel |
getTableModel() |
protected Object |
getValueAt(int row,
int column) |
protected boolean |
hasSeparatorAt(int row) |
void |
printTable() |
void |
printTable(PrintStream ps,
int indent) |
void |
setAddRowNumbering(boolean addNumbering) |
void |
setSort(int column) |
void |
setSort(int column,
SortOrder sortOrder) |
void |
toCsv(OutputStream os) |
protected TableModel tableModel
protected List<SeparatorPolicy> separatorPolicies
protected boolean addRowNumbering
protected RowSorter<?> rowSorter
protected boolean headless
public TextTable(TableModel tableModel)
public TextTable(TableModel tableModel, boolean addNumbering)
public TableModel getTableModel()
public void setAddRowNumbering(boolean addNumbering)
public void addSeparatorPolicy(SeparatorPolicy separatorPolicy)
public void setSort(int column)
public void setSort(int column,
SortOrder sortOrder)
public void printTable()
public void printTable(PrintStream ps, int indent)
public void toCsv(OutputStream os)
protected Object getValueAt(int row, int column)
protected boolean hasSeparatorAt(int row)
Copyright © 2017. All rights reserved.