public class DataBuilder extends ChangesBuilder
DataBuilder builder = new DataBuilder(); DataRow root = builder.addRow(); root.put(TreeGrid.I.id, "ROOT"); root.put("Test", "Test1"); DataRow child = root.addItem(); child.put(TreeGrid.I.id, "1"); child.put("Test", "Test2"); String data = builder.toString(); PrintWriter pw = resp.getWriter(); pw.print(data); pw.flush();The "Body" is added automatically when you call addRow(), and rows created using addRow() are automatically added to the model.
Constructor and Description |
---|
DataBuilder() |
DataBuilder(java.util.Map data) |
addChange, addChange, addChange, addDeleted, addDeleted, addNewRow, addNewRow, addNewRow, Changes, findChange
Actions, addCol, addCol, addCol, addCol, addDef, addGantt, addGantt, addLeftCol, addLeftCol, addLeftCol, addPager, addRightCol, addRightCol, addRightCol, addRow, addSolid, addZoom, Body, Calendars, Cfg, Cols, Def, Filter, Format, Gantt, getSolid, Head, Header, Lang, LeftCols, Pagers, Panel, RightCols, Solid, Toolbar, Zoom
getAsType, newArrayObject, setValue
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toString