|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.twenty11.skysail.common.grids.RowData
public class RowData
A rowData object basically holds a map between the columns name and a value, thus providing access to the cells making up the row. It can be constructed by either using the constructor taking a columns object and then 'filling it up' by calling 'add' repeatedly, or, by using the default constructor and then calling setCells.
| Constructor Summary | |
|---|---|
RowData()
|
|
RowData(Columns cols)
constructor fed with the mapping between column names and columnDefinitions. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RowData()
public RowData(Columns cols)
cols - the mapping you can get from getSkysailData().getColumns();| Method Detail |
|---|
public RowData add(Object data)
data - a value object (like a cell in a datagrid)
public RowData add(String colName,
String value)
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()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||