org.cruxframework.crux.core.client
Class Crux

java.lang.Object
  extended by org.cruxframework.crux.core.client.Crux
All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint

public class Crux
extends Object
implements com.google.gwt.core.client.EntryPoint

CRUX Client Engine. It starts a ScreenFactory to build the client view. Any module of a Crux application must inherit Crux module.

The following example shows a HelloWorld module using Crux:

 <module rename-to='helloworld'>
         <inherits name='org.cruxframework.crux.core.Crux'/>
         <inherits name='org.cruxframework.crux.gwt.CruxGWTWidgets'/>
   ...
 </module>
 

Author:
Thiago da Rosa de Bustamante

Constructor Summary
Crux()
           
 
Method Summary
static CruxClientConfig getConfig()
           
static ErrorHandler getErrorHandler()
           
static ClientMessages getMessages()
           
static ValidationErrorHandler getValidationErrorHandler()
           
static void initializeEngine()
           
static boolean isInitialized()
           
 void onModuleLoad()
          This is the entry point method.
static void setErrorHandler(ErrorHandler errorHandler)
           
static void setValidationErrorHandler(ValidationErrorHandler validationErrorHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Crux

public Crux()
Method Detail

getConfig

public static CruxClientConfig getConfig()
Returns:

getErrorHandler

public static ErrorHandler getErrorHandler()
Returns:

getMessages

public static ClientMessages getMessages()
Returns:

isInitialized

public static boolean isInitialized()
Returns:

getValidationErrorHandler

public static ValidationErrorHandler getValidationErrorHandler()
Returns:

initializeEngine

public static void initializeEngine()

setErrorHandler

public static void setErrorHandler(ErrorHandler errorHandler)
Parameters:
errorHandler -

setValidationErrorHandler

public static void setValidationErrorHandler(ValidationErrorHandler validationErrorHandler)
Parameters:
validationErrorHandler -

onModuleLoad

public void onModuleLoad()
This is the entry point method. Called when the page is loaded.

Specified by:
onModuleLoad in interface com.google.gwt.core.client.EntryPoint


Copyright © 2014. All rights reserved.