com.sibvisions.rad.ui.gwt.client
Class WebUI

java.lang.Object
  extended by com.sibvisions.rad.ui.gwt.client.WebUI
All Implemented Interfaces:
EntryPoint
Direct Known Subclasses:
WebUITest

public class WebUI
extends Object
implements EntryPoint

The WebUI is the GWT client interpreter for JVx applications. It handles the initialization and rendering.


Field Summary
static boolean buildingUI
          Building UI.
static SelectionListener<ButtonEvent> BUTTON_LISTENER
          ButtonListener for Button Events.
static Listener<FieldEvent> CHECKBOX_CHANGELISTENER
          Component data key listener.
static Listener<FieldEvent> CHECKBOX_LISTENER
          Component data key listener.
static SelectionListener<MenuEvent> CHECKMENU_CHANGELISTENER
          Component data key listener.
static KeyListener COMPONENTDATA_KEYLISTENER
          Component data key listener.
static SelectionListener<ButtonEvent> COMPONENTDATA_SELECTIONLISTENER
          ButtonListener for Button Events.
static SelectionListener<MenuEvent> MENUITEM_LISTENER
          ButtonListener for Button Events.
static Listener<ComponentEvent> WINDOW_LISTENER
          ButtonListener for Button Events.
 
Constructor Summary
WebUI()
          Creates a new instance of WebUI.
 
Method Summary
static void dispatchEvent(ServiceEvent pEvent)
          Dispatches an event to the server.
static
<R extends ServiceResult>
void
dispatchEvent(ServiceEvent pEvent, AsyncCallback<R> pCallBack)
          Dispatches an event to the server and handles the result in async manner.
static String getClientId()
          Gets the id of this client.
static WebUI getInstance()
          The WebUI instance.
static LayoutContainer getRoot()
          The root.
static GVxMask mask()
          Masks the application.
 void onModuleLoad()
          This is the entry point method.
protected  void restart()
          Starts the application after it is already started.
static void setComponentData(String pId, Object pData)
          Sets the component data that changed and has to be sent to the client.
static void startup(String pMain, String pConfig)
          Starts a specific application on the server.
static void unmask()
          Unmasks the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buildingUI

public static boolean buildingUI
Building UI.


COMPONENTDATA_KEYLISTENER

public static final KeyListener COMPONENTDATA_KEYLISTENER
Component data key listener.


COMPONENTDATA_SELECTIONLISTENER

public static final SelectionListener<ButtonEvent> COMPONENTDATA_SELECTIONLISTENER
ButtonListener for Button Events.


BUTTON_LISTENER

public static final SelectionListener<ButtonEvent> BUTTON_LISTENER
ButtonListener for Button Events.


CHECKBOX_CHANGELISTENER

public static final Listener<FieldEvent> CHECKBOX_CHANGELISTENER
Component data key listener.


CHECKBOX_LISTENER

public static final Listener<FieldEvent> CHECKBOX_LISTENER
Component data key listener.


CHECKMENU_CHANGELISTENER

public static final SelectionListener<MenuEvent> CHECKMENU_CHANGELISTENER
Component data key listener.


MENUITEM_LISTENER

public static final SelectionListener<MenuEvent> MENUITEM_LISTENER
ButtonListener for Button Events.


WINDOW_LISTENER

public static final Listener<ComponentEvent> WINDOW_LISTENER
ButtonListener for Button Events.

Constructor Detail

WebUI

public WebUI()
Creates a new instance of WebUI.

Method Detail

onModuleLoad

public void onModuleLoad()
This is the entry point method.

Specified by:
onModuleLoad in interface EntryPoint

getClientId

public static String getClientId()
Gets the id of this client.

Returns:
the client id

startup

public static void startup(String pMain,
                           String pConfig)
Starts a specific application on the server.

Parameters:
pMain - the main class to start
pConfig - the application configuration file

dispatchEvent

public static void dispatchEvent(ServiceEvent pEvent)
Dispatches an event to the server.

Parameters:
pEvent - the event

dispatchEvent

public static <R extends ServiceResult> void dispatchEvent(ServiceEvent pEvent,
                                                           AsyncCallback<R> pCallBack)
Dispatches an event to the server and handles the result in async manner.

Type Parameters:
R - the event result
Parameters:
pEvent - the event
pCallBack - the call back handler

getInstance

public static WebUI getInstance()
The WebUI instance.

Returns:
the root.

getRoot

public static LayoutContainer getRoot()
The root.

Returns:
the root.

setComponentData

public static void setComponentData(String pId,
                                    Object pData)
Sets the component data that changed and has to be sent to the client.

Parameters:
pId - the Id
pData - the data

mask

public static GVxMask mask()
Masks the application.

Returns:
the mask element

unmask

public static void unmask()
Unmasks the application.


restart

protected void restart()
Starts the application after it is already started.



Copyright © 2009 SIB Visions GmbH. All Rights Reserved.