Package com.groiss.smartclient
Class JsonDataAdapter<T>
java.lang.Object
com.groiss.smartclient.JsonDataAdapter<T>
- All Implemented Interfaces:
JsonData
- Direct Known Subclasses:
ObjectSelectProvider
Adapter that implements the
JsonData
interface.-
Field Summary
Modifier and TypeFieldDescriptionprotected NavigationTreeNode
protected String
protected HttpServletRequest
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected T
getData()
Two cases: id is known, return the object with this id, else return all objects.what object-properties should be used may be called multiple timesget all required objects. basic filtering should be done here is called onceprotected abstract Object
will be called for each object and each fieldvoid
init
(HttpServletRequest req, String params, String id, NavigationTreeNode configuration) called once when initalizing the modelprotected void
onRowComplete
(T p, Map<String, Object> row) will be called once for each row
-
Field Details
-
request
-
config
-
requestedId
-
parameters
-
objects
-
-
Constructor Details
-
JsonDataAdapter
public JsonDataAdapter()
-
-
Method Details
-
get
-
getData
Description copied from interface:JsonData
Two cases: id is known, return the object with this id, else return all objects. -
getData
- Throws:
Exception
-
onRowComplete
will be called once for each row- Parameters:
p
-row
-
-
getObjects
get all required objects. basic filtering should be done here is called once- Returns:
-
getFields
what object-properties should be used may be called multiple times- Returns:
-
getValue
will be called for each object and each field- Parameters:
object
-field
-- Returns:
- Throws:
Exception
-
getFavorites