public class HRunJobCustomizer
extends org.soafaces.bundle.client.ui.SimplePOJOWeblet
The Customizer or 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 Customizer is to save the changes made by the user to
input JavaBean.
Author:
Sam Taha
Nested Class Summary
Nested classes/interfaces inherited from class org.soafaces.bundle.client.ui.Weblet
Description copied from class: org.soafaces.bundle.client.ui.SimplePOJOWeblet
Method to implement in subclass. Use this method to populate the UI and
setup action handlers and such.
Specified by:
buildUI in class org.soafaces.bundle.client.ui.SimplePOJOWeblet
Parameters:
inputBean - Input JavaBean
onSaveInputBean
public 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. If the validation
is not proper it should return false.
The Container hosting the Customizer will call
this method in order to save the input JavaBean
to its persistent store. The saved state of the
input JavaBean is what is referenced when the
Tasklet/Job is run.
Overrides:
onSaveInputBean in class org.soafaces.bundle.client.ui.Weblet
Parameters:
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.