|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwater.api.RequestBuilders.Builder
water.api.RequestBuilders.ObjectBuilder
public static class RequestBuilders.ObjectBuilder
Object builder. By default objects are displayed as a horizontal dl elements with their heading preceding any of the values. Methods for caption, header, footer as well as element building are provided so that the behavior can easily be customized.
Constructor Summary | |
---|---|
RequestBuilders.ObjectBuilder()
|
Method Summary | |
---|---|
java.lang.String |
build(RequestBuilders.Response response,
com.google.gson.JsonElement element,
java.lang.String contextName)
The original build method. |
java.lang.String |
build(RequestBuilders.Response response,
com.google.gson.JsonObject object,
java.lang.String contextName)
Creates the HTML of the object. |
java.lang.String |
caption(com.google.gson.JsonObject object,
java.lang.String objectName)
Displays the caption of the object. |
java.lang.String |
footer(com.google.gson.JsonObject object,
java.lang.String objectName)
Returns the footer of the object. |
java.lang.String |
header(com.google.gson.JsonObject object,
java.lang.String objectName)
Returns the header of the object. |
Methods inherited from class water.api.RequestBuilders.Builder |
---|
addToContext, defaultBuilder, elementName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestBuilders.ObjectBuilder()
Method Detail |
---|
public java.lang.String caption(com.google.gson.JsonObject object, java.lang.String objectName)
public java.lang.String header(com.google.gson.JsonObject object, java.lang.String objectName)
public java.lang.String footer(com.google.gson.JsonObject object, java.lang.String objectName)
public java.lang.String build(RequestBuilders.Response response, com.google.gson.JsonObject object, java.lang.String contextName)
public java.lang.String build(RequestBuilders.Response response, com.google.gson.JsonElement element, java.lang.String contextName)
build
in class RequestBuilders.Builder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |