public abstract class SimpleJSONWeblet extends Weblet
A convenient subclass of Weblet. Serializes the input JavaBean associated
with the Weblet using JSON and presents it to the Weblet GWT widget
as a JSONObject
This class should be subclassed to create a custom editor (Weblet) for a given Tasklet or to create a standalone application. This UI is considered a "design time" UI for customizing the Tasklets input JavaBean.
Weblet.Mode
Constructor and Description |
---|
SimpleJSONWeblet() |
Modifier and Type | Method and Description |
---|---|
void |
buildUI()
Convenient implementation that pulls the input JavaBean from the server
and wrapps it in a JSONObject.
|
protected abstract void |
buildUI(com.google.gwt.json.client.JSONObject jsonBean)
Method to implement in subclass.
|
com.google.gwt.user.client.ui.Panel |
getMainPanel()
Convenient implementation to return the top level UI container.
|
getContext, getMode, initUI, onModuleLoad, onSaveInputBean
public com.google.gwt.user.client.ui.Panel getMainPanel()
getMainPanel
in class Weblet
public final void buildUI()
protected abstract void buildUI(com.google.gwt.json.client.JSONObject jsonBean)
jsonBean
- Input JavaBean serialized to JSON.Copyright © Grand Logic, Inc. All Rights Reserved.