public class RowData extends Object implements Serializable
| Constructor and Description |
|---|
RowData() |
RowData(Columns cols)
constructor fed with the mapping between column names and columnDefinitions.
|
| Modifier and Type | Method and Description |
|---|---|
RowData |
add(Object data)
A value object (think of a cell in a grid) gets added to the rowData instance, taking into account the position
of the column (by increasing an internal counter each time 'add' is called).
|
void |
add(Object data,
String defaultString)
Adds "rows" to the rowData instance unless data is null; in this case the defaultString is added.
|
RowData |
add(String colName,
String value) |
boolean |
equals(Object obj) |
Map<String,String> |
getCells() |
List<Object> |
getColumnData()
This method might not work like expected when the rowData was created by deserializing a string representation
(e.g.
|
int |
hashCode() |
void |
setCells(Map<String,String> props)
This is being called for example by jackson when trying to deserialize from a string representation.
|
String |
toString() |
public RowData()
public RowData(Columns cols)
cols - the mapping you can get from getSkysailData().getColumns();public RowData add(Object data)
data - a value object (like a cell in a datagrid)public void add(Object data, String defaultString)
data - a value object (like a cell in a datagrid)defaultString - this string will be added instead of "rows" if data is null. May not be null.public Map<String,String> getCells()
public void setCells(Map<String,String> props)
props - public List<Object> getColumnData()
Copyright © 2011-2013. All Rights Reserved.