public final class ObjectFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T extends BaseClass> |
createBaseClass(java.lang.String smartClientClassName,
com.google.gwt.core.client.JavaScriptObject javaScriptObject,
boolean createDefault) |
static <T extends BaseWidget> |
createCanvas(java.lang.String smartClientClassName,
com.google.gwt.core.client.JavaScriptObject javaScriptObject)
This method will create a SmartGWT class from the javaScriptObject and smartClientClassName
provided.
|
static <T extends DataClass> |
createDataClass(java.lang.String smartClientClassName,
com.google.gwt.core.client.JavaScriptObject javaScriptObject,
boolean createDefault) |
static <T extends RefDataClass> |
createFormItem(java.lang.String smartClientClassName,
com.google.gwt.core.client.JavaScriptObject javaScriptObject)
This method will create a SmartGWT class from the javaScriptObject and smartClientClassName
provided.
|
static java.lang.Object |
createInstance(java.lang.String scClassName,
com.google.gwt.core.client.JavaScriptObject jsObj) |
static java.lang.Class<?> |
getSmartGWTClass(java.lang.String smartClientClassName)
This method is a convenience for calling @{link #getSmartGWTClass}.getName();
|
static java.lang.String |
getSmartGWTClassFQN(java.lang.String smartClientClassName)
The SmartClient class name used to lookup the corresponding SmartGWT class, which is then returned.
|
public static final <T extends BaseWidget> T createCanvas(java.lang.String smartClientClassName, com.google.gwt.core.client.JavaScriptObject javaScriptObject)
public static final <T extends RefDataClass> T createFormItem(java.lang.String smartClientClassName, com.google.gwt.core.client.JavaScriptObject javaScriptObject)
public static <T extends DataClass> T createDataClass(java.lang.String smartClientClassName, com.google.gwt.core.client.JavaScriptObject javaScriptObject, boolean createDefault)
public static <T extends BaseClass> T createBaseClass(java.lang.String smartClientClassName, com.google.gwt.core.client.JavaScriptObject javaScriptObject, boolean createDefault)
public static java.lang.Object createInstance(java.lang.String scClassName, com.google.gwt.core.client.JavaScriptObject jsObj)
public static final java.lang.String getSmartGWTClassFQN(java.lang.String smartClientClassName)
Button myButton = ObjectRegistry.getSmartGWTClass("Button");
smartClientClassName
- public static final java.lang.Class<?> getSmartGWTClass(java.lang.String smartClientClassName)
smartClientClassName
-