public abstract class RuntimeViewer
extends java.lang.Object
implements com.google.gwt.core.client.EntryPoint
Base class used to create a custom viewer for the input/output JavaBeans that are used when a Tasklet is executed. The RuntimeViewer allows the user the ability to view a Tasklet's input or output JavaBean and runtime status as the Tasklet runs or after the Tasklet has finished running. The RuntimeViewer is used by the user to determine the exact input/output used by the Tasklet when the job/workflow was run.
This class functions as the top level GUI container for viewing input/ouput properties and status of a Tasklet as the Tasklet is running or after the Tasklet has finished running. Note, that implementing this class is optional. If a Tasklet has no need for a GUI input/output runtime viewer, to view Tasklets properties and status, then there is no need to implement this class.
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeViewer.Mode
The RuntimeViewer should function fully capable in NORMAL mode.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
buildUI()
Implement this to create all the UI components that will be housed in this
top level container.
|
IOViewerContext |
getContext() |
abstract com.google.gwt.user.client.ui.Panel |
getMainPanel()
This can return
RootPanel.get() or any other panel you want to house your UI. |
RuntimeViewer.Mode |
getMode()
Only the more advanced and complex implementations need to concern
themselves with what
mode the IOViewer is in. |
void |
initUI(IOViewerContext context,
RuntimeViewer.Mode mode)
Called by the container to initialize the UI.
|
void |
onModuleLoad() |
public final void initUI(IOViewerContext context, RuntimeViewer.Mode mode)
context
- mode
- Allows the RuntimeViewer to work under NORMAL
or DEMO
mode.
DEMO mode typically applies when the RuntimeViewer is used to
demonstrate how the UI works without the actual functionality.protected abstract void buildUI()
public abstract com.google.gwt.user.client.ui.Panel getMainPanel()
RootPanel.get()
or any other panel you want to house your UI.public final IOViewerContext getContext()
public final RuntimeViewer.Mode getMode()
mode
the IOViewer is in. The average
RuntimeViewer will typically not care about this state.
A subclass should use this property to control how the RuntimeViewer functions.
It is up to the RuntimeViewer to use this property to determine
how to limit its features and functionality.
The possible modes are:
NORMAL modepublic final void onModuleLoad()
onModuleLoad
in interface com.google.gwt.core.client.EntryPoint
Copyright © Grand Logic, Inc. All Rights Reserved.