org.cruxframework.crux.core.client
Class Crux
java.lang.Object
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Crux
public Crux()
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.