public class HelloWorldCustomizer
extends org.soafaces.bundle.client.ui.SimplePOJOWeblet
implements com.google.gwt.event.dom.client.ClickHandler
The Weblet for this Tasklet allows the user to edit the input JavBean properties using a graphical user interface. The GUI is based on the GWT framework which resembles the awt/swing API but is http/html based instead. The objective of the Weblet is to save the changes made by the user to the input JavaBean.
Constructor and Description |
---|
HelloWorldCustomizer() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildUI(com.google.gwt.user.client.rpc.IsSerializable bean)
Method to implement in subclass.
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event)
This action handler can be used to handle standard GUI events.
|
void |
onSaveInputBean(org.soafaces.bundle.client.rpc.SuccessFailCallback callback)
Save the state of the UI to the input JavaBean.
|
protected void buildUI(com.google.gwt.user.client.rpc.IsSerializable bean)
org.soafaces.bundle.client.ui.SimplePOJOWeblet
buildUI
in class org.soafaces.bundle.client.ui.SimplePOJOWeblet
bean
- Input JavaBeanpublic 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.