public abstract class SimpleJSONRuntimeViewer extends RuntimeViewer
A convenient subclass for viewing the Tasklet's runtime input
and output JavaBeans. This class serializes the input and output
JavaBeans associated with the Tasklet using JSON and presents them
to the GWT UI as a JSONObject
.
Use this class if your Tasklet has both an input and output JavaBean and if you intend to have the UI view both the input and output JavaBeans.
RuntimeViewer.Mode
Constructor and Description |
---|
SimpleJSONRuntimeViewer() |
Modifier and Type | Method and Description |
---|---|
void |
buildUI()
Convenient implementation that pulls both the input and output JavaBeans from the server
and wraps them in a JSONObject.
|
protected abstract void |
buildUI(com.google.gwt.json.client.JSONObject inputJsonBean,
com.google.gwt.json.client.JSONObject outputJsonBean,
TaskletStatus taskletStatus)
Method to implement in your subclass.
|
com.google.gwt.user.client.ui.Panel |
getMainPanel()
Convenient implementation to return the top level UI container.
|
getContext, getMode, initUI, onModuleLoad
public com.google.gwt.user.client.ui.Panel getMainPanel()
getMainPanel
in class RuntimeViewer
public final void buildUI()
buildUI
in class RuntimeViewer
protected abstract void buildUI(com.google.gwt.json.client.JSONObject inputJsonBean, com.google.gwt.json.client.JSONObject outputJsonBean, TaskletStatus taskletStatus)
inputJsonBean
- Input JavaBean serialized to JSON.outputJsonBean
- Output JavaBean serialized to JSON.taskletStatus
- Contains current status information of currently running or completed TaskletCopyright © Grand Logic, Inc. All Rights Reserved.