public class MyApplet
extends org.soafaces.bundle.client.ui.SimpleJSONWeblet
implements com.google.gwt.event.dom.client.ClickHandler
Constructor and Description |
---|
MyApplet()
This constructor is used by the application hosting the customizer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildUI(com.google.gwt.json.client.JSONObject inputJSON)
Method to implement in subclass.
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
onSaveInputBean(org.soafaces.bundle.client.rpc.SuccessFailCallback callback)
This method should be used to save the state
of the GUI to the input JavaBean and perform
any necessary validation checks.
|
public MyApplet()
This constructor is used by the application hosting the customizer.
Make sure the first thing to do in the constructor is to
call the super constructor as shown here. After the call to super
you will be able to call the
getInputBean
method so that you can
access the input JavaBean.
Typically in the constructor is where you create all the echo components and setup property change handlers and action handlers.
protected void buildUI(com.google.gwt.json.client.JSONObject inputJSON)
org.soafaces.bundle.client.ui.SimpleJSONWeblet
buildUI
in class org.soafaces.bundle.client.ui.SimpleJSONWeblet
inputJSON
- Input JavaBean serialized to JSON.public void onSaveInputBean(org.soafaces.bundle.client.rpc.SuccessFailCallback callback)
onSaveInputBean
in class org.soafaces.bundle.client.ui.Weblet
callback
- Used in this method to relay when the outside container
can safely save the input JavaBean. This is need in case
this method needs to perform an asynchronous call before
allowing the save to occur. Make sure to that callback.returnSuccess()
or callback.return.Failure()
are returned. It is highly
recommended to place this methods implementation in a try/catch/finally
to insure that returnSuccess or returnFailure is called.public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick
in interface com.google.gwt.event.dom.client.ClickHandler
Copyright © Grand Logic, Inc. All Rights Reserved.