com.smartgwt.client.core
Class BaseClass
java.lang.Object
com.smartgwt.client.core.BaseClass
- Direct Known Subclasses:
- DataSource, SimpleType, Tree, ValuesManager
public abstract class BaseClass
- extends java.lang.Object
Field Summary |
protected com.google.gwt.core.client.JavaScriptObject |
config
|
protected java.lang.String |
id
|
Constructor Summary |
|
BaseClass()
|
protected |
BaseClass(com.google.gwt.core.client.JavaScriptObject jsObj)
|
Method Summary |
protected abstract com.google.gwt.core.client.JavaScriptObject |
create()
|
void |
destroy()
Destroy this object. |
protected
|
doAddHandler(H handler,
GwtEvent.Type<H> type)
|
protected void |
error(java.lang.String message)
|
protected void |
errorIfNotCreated(java.lang.String property)
|
void |
fireEvent(GwtEvent<?> event)
|
protected java.lang.String |
getAttribute(java.lang.String attribute)
|
protected java.lang.Boolean |
getAttributeAsBoolean(java.lang.String attribute)
|
protected java.lang.Double |
getAttributeAsDouble(java.lang.String attribute)
|
protected com.google.gwt.user.client.Element |
getAttributeAsElement(java.lang.String attribute)
|
protected java.lang.Float |
getAttributeAsFloat(java.lang.String attribute)
|
protected java.lang.Integer |
getAttributeAsInt(java.lang.String attribute)
|
protected com.google.gwt.core.client.JavaScriptObject |
getAttributeAsJavaScriptObject(java.lang.String attribute)
|
protected java.lang.String |
getAttributeAsString(java.lang.String attribute)
|
com.google.gwt.core.client.JavaScriptObject |
getConfig()
|
int |
getHandlerCount(GwtEvent.Type<?> type)
|
java.lang.String |
getID()
Return the ID |
com.google.gwt.core.client.JavaScriptObject |
getJsObj()
|
com.google.gwt.core.client.JavaScriptObject |
getOrCreateJsObj()
|
static BaseClass |
getRef(com.google.gwt.core.client.JavaScriptObject jsObj)
|
boolean |
isCreated()
|
protected void |
onInit()
|
protected void |
setAttribute(java.lang.String attribute,
BaseClass[] value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
boolean value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
java.lang.Boolean value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
DataClass[] value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
DataClass value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
java.util.Date value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
double value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
com.google.gwt.user.client.Element value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
int[] value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
int value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
com.google.gwt.core.client.JavaScriptObject value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
java.util.Map value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
java.lang.String[] value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
java.lang.String value,
boolean allowPostCreate)
|
protected void |
setAttribute(java.lang.String attribute,
ValueEnum[] value,
boolean allowPostCreate)
|
void |
setID(java.lang.String id)
|
void |
setProperty(java.lang.String property,
boolean value)
|
void |
setProperty(java.lang.String property,
double value)
|
void |
setProperty(java.lang.String property,
com.google.gwt.core.client.JavaScriptObject value)
|
void |
setProperty(java.lang.String property,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected java.lang.String id
config
protected com.google.gwt.core.client.JavaScriptObject config
BaseClass
public BaseClass()
BaseClass
protected BaseClass(com.google.gwt.core.client.JavaScriptObject jsObj)
getID
public java.lang.String getID()
- Return the ID
- Returns:
- the ID
setID
public void setID(java.lang.String id)
getConfig
public com.google.gwt.core.client.JavaScriptObject getConfig()
isCreated
public boolean isCreated()
getJsObj
public com.google.gwt.core.client.JavaScriptObject getJsObj()
getOrCreateJsObj
public com.google.gwt.core.client.JavaScriptObject getOrCreateJsObj()
getRef
public static BaseClass getRef(com.google.gwt.core.client.JavaScriptObject jsObj)
destroy
public void destroy()
- Destroy this object.
errorIfNotCreated
protected void errorIfNotCreated(java.lang.String property)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
error
protected void error(java.lang.String message)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
create
protected abstract com.google.gwt.core.client.JavaScriptObject create()
onInit
protected void onInit()
getAttribute
protected java.lang.String getAttribute(java.lang.String attribute)
getAttributeAsString
protected java.lang.String getAttributeAsString(java.lang.String attribute)
getAttributeAsDouble
protected java.lang.Double getAttributeAsDouble(java.lang.String attribute)
getAttributeAsElement
protected com.google.gwt.user.client.Element getAttributeAsElement(java.lang.String attribute)
getAttributeAsJavaScriptObject
protected com.google.gwt.core.client.JavaScriptObject getAttributeAsJavaScriptObject(java.lang.String attribute)
getAttributeAsInt
protected java.lang.Integer getAttributeAsInt(java.lang.String attribute)
getAttributeAsFloat
protected java.lang.Float getAttributeAsFloat(java.lang.String attribute)
getAttributeAsBoolean
protected java.lang.Boolean getAttributeAsBoolean(java.lang.String attribute)
setAttribute
protected void setAttribute(java.lang.String attribute,
java.lang.String value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
java.lang.Boolean value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
java.util.Map value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
int[] value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
BaseClass[] value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
DataClass[] value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
double value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
int value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
java.util.Date value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
ValueEnum[] value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
DataClass value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
com.google.gwt.core.client.JavaScriptObject value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
java.lang.String[] value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
boolean value,
boolean allowPostCreate)
setAttribute
protected void setAttribute(java.lang.String attribute,
com.google.gwt.user.client.Element value,
boolean allowPostCreate)
setProperty
public void setProperty(java.lang.String property,
java.lang.String value)
setProperty
public void setProperty(java.lang.String property,
boolean value)
setProperty
public void setProperty(java.lang.String property,
double value)
setProperty
public void setProperty(java.lang.String property,
com.google.gwt.core.client.JavaScriptObject value)
fireEvent
public void fireEvent(GwtEvent<?> event)
doAddHandler
protected final <H extends EventHandler> HandlerRegistration doAddHandler(H handler,
GwtEvent.Type<H> type)
getHandlerCount
public int getHandlerCount(GwtEvent.Type<?> type)