public class LogicTable<H extends Format & Comparable<H>,ID>
extends de.tsl2.nano.collection.TableList<H,ID>
TableList providing logic expressions to be filled into cells like in excel.
Header-columns and row-ids are flexible but as default like in excel.| Constructor and Description |
|---|
LogicTable(H... header)
constructor
|
LogicTable(Object... header) |
LogicTable(String name,
int columnCount)
see
TableList.TableList(Class, int) |
LogicTable(String name,
int cols,
int rows)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected static Object |
createDefaultHeader(Object source) |
String |
createKey(int row,
int col) |
Map<String,Object> |
createValueMap()
create a simple readable map, transforming a key to header/row information
|
void |
doOnValues(ICellVisitor visitor) |
protected void |
dumpValues(StringBuilder buf,
String div,
boolean resolve) |
Object |
get(int row,
int column) |
Object |
get(String row,
String column)
gets a value through given column/row-id as strings
|
Map<String,Object> |
getValueMap() |
boolean |
isFormula(Object cell) |
protected String |
nonull(Object value) |
void |
set(String row,
String column,
Object value)
sets a new value through given column/row-id as strings
|
protected de.tsl2.nano.logictable.TEntry<H,ID> |
transform(Object key)
transforms a flat string into header and row info to address a table-cell
|
add, add, addAll, addAll, checkColumnSize, checkRowSize, checkRowSize, checkSizes, createRow, createRowID, dump, dump, fill, fill, fill, get, get, get, get, get, getColumnCount, getColumns, getHeader, getName, getRowCount, getRowID, indexOf, load, load, load, remove, remove, save, set, set, set, set, set, set, size, toStringpublic static final String ERROR
public LogicTable(String name, int cols, int rows)
cols - rows - public LogicTable(H... header)
header - public LogicTable(Object... header)
public LogicTable(String name, int columnCount)
TableList.TableList(Class, int)public boolean isFormula(Object cell)
public void set(String row, String column, Object value)
row - row-id to be found through this stringcolumn - header-column to be found through this stringvalue - value to setpublic Object get(String row, String column)
row - row-id to be found through this stringcolumn - header-column to be found through this stringpublic Object get(int row, int column)
get in class de.tsl2.nano.collection.TableList<H extends Format & Comparable<H>,ID>public Map<String,Object> createValueMap()
public String createKey(int row, int col)
protected de.tsl2.nano.logictable.TEntry<H,ID> transform(Object key)
key - flat string, concatenating a header-column with a row-id (like: 'A1')public void doOnValues(ICellVisitor visitor)
protected void dumpValues(StringBuilder buf, String div, boolean resolve)
dumpValues in class de.tsl2.nano.collection.TableList<H extends Format & Comparable<H>,ID>Copyright © 2012–2018. All rights reserved.