public class ChangesBuilder extends UIBuilder
Constructor and Description |
---|
ChangesBuilder() |
ChangesBuilder(java.util.Map data) |
Modifier and Type | Method and Description |
---|---|
com.ibm.json.java.JSONObject |
addChange(java.lang.String id)
Adds a new, empty, Change Record to the reply for the given existing id.
|
com.ibm.json.java.JSONObject |
addChange(java.lang.String id,
com.ibm.json.java.JSONObject change)
Adds a new change Record to the reply with the given change data for the
existing id.
|
com.ibm.json.java.JSONObject |
addChange(java.lang.String id,
java.lang.String field,
java.lang.Object value)
Convenience method to update field in the changed record.
|
com.ibm.json.java.JSONObject |
addDeleted(java.lang.String id)
Marks the row id for deletion
|
com.ibm.json.java.JSONObject |
addDeleted(java.lang.String id,
boolean newRow)
Marks the row id for deletion
|
com.ibm.json.java.JSONObject |
addNewRow(java.lang.String id)
Adds a new empty row to the data model.
|
com.ibm.json.java.JSONObject |
addNewRow(java.lang.String id,
boolean forceNewRow) |
com.ibm.json.java.JSONObject |
addNewRow(java.lang.String id,
com.ibm.json.java.JSONObject change)
Used to create new Row in the TreeGrid model that does not currently
exist on the client.
|
com.ibm.json.java.JSONArray |
Changes() |
com.ibm.json.java.JSONObject |
findChange(java.lang.String id)
Finds a change by it's ID or NewID fields
|
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
public ChangesBuilder()
public ChangesBuilder(java.util.Map data)
public com.ibm.json.java.JSONArray Changes()
public com.ibm.json.java.JSONObject addDeleted(java.lang.String id)
public com.ibm.json.java.JSONObject addDeleted(java.lang.String id, boolean newRow)
public com.ibm.json.java.JSONObject addChange(java.lang.String id)
id
- public com.ibm.json.java.JSONObject addChange(java.lang.String id, java.lang.String field, java.lang.Object value)
id
- field
- value
- public com.ibm.json.java.JSONObject addChange(java.lang.String id, com.ibm.json.java.JSONObject change)
id
- change
- public com.ibm.json.java.JSONObject addNewRow(java.lang.String id, com.ibm.json.java.JSONObject change)
id
- change
- public com.ibm.json.java.JSONObject addNewRow(java.lang.String id, boolean forceNewRow)
public com.ibm.json.java.JSONObject addNewRow(java.lang.String id)
id
- public com.ibm.json.java.JSONObject findChange(java.lang.String id)
id
-