|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.smartgwt.client.widgets.BaseWidget
public abstract class BaseWidget
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
protected JavaScriptObject |
config
|
protected boolean |
configOnly
|
protected String |
id
|
protected boolean |
isElementSet
|
NativeObject |
nativeObject
|
protected String |
scClassName
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
BaseWidget()
|
protected |
BaseWidget(JavaScriptObject jsObj)
|
|
BaseWidget(String id)
|
| Method Summary | ||
|---|---|---|
HandlerRegistration |
addDrawHandler(DrawHandler handler)
|
|
protected JavaScriptObject |
create()
|
|
void |
destroy()
Permanently destroy a Canvas and all of it's children / members, recursively. |
|
protected
|
doAddHandler(H handler,
GwtEvent.Type<H> type)
Adds this handler to the widget. |
|
protected void |
doInit()
|
|
void |
doOnRender(Function function)
|
|
void |
draw()
Draws the widget on the page. |
|
boolean |
equals(Object obj)
|
|
protected void |
error(String message)
|
|
protected void |
errorIfNotCreated(String property)
|
|
void |
fireEvent(GwtEvent<?> event)
|
|
protected String |
getAttribute(String attribute)
|
|
protected Boolean |
getAttributeAsBoolean(String property)
|
|
protected Date |
getAttributeAsDate(String property)
|
|
protected Date[] |
getAttributeAsDateArray(String property)
|
|
protected Double |
getAttributeAsDouble(String property)
|
|
protected Element |
getAttributeAsElement(String property)
|
|
protected Float |
getAttributeAsFloat(String property)
|
|
protected Float[] |
getAttributeAsFloatArray(String property)
|
|
protected Integer |
getAttributeAsInt(String property)
|
|
protected int[] |
getAttributeAsIntArray(String property)
|
|
protected JavaScriptObject |
getAttributeAsJavaScriptObject(String property)
|
|
protected Map |
getAttributeAsMap(String property)
|
|
protected String |
getAttributeAsString(String property)
|
|
protected String[] |
getAttributeAsStringArray(String property)
|
|
JavaScriptObject |
getConfig()
|
|
Element |
getDOM()
|
|
Element |
getElement()
|
|
Element |
getElement(boolean allowPreRender)
|
|
int |
getHandlerCount(GwtEvent.Type<?> type)
|
|
String |
getID()
|
|
String |
getInnerHTML()
Return the inner HTML for this canvas. |
|
JavaScriptObject |
getJsObj()
|
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
|
|
JavaScriptObject |
getOrCreateJsObj()
|
|
static BaseWidget |
getRef(JavaScriptObject jsObj)
|
|
String |
getScClassName()
Get the name of the underlying SmartClient class |
|
String |
getTitle()
|
|
int |
hashCode()
|
|
void |
initNativeObject()
|
|
boolean |
isConfigOnly()
|
|
boolean |
isCreated()
|
|
protected Boolean |
isDrawn()
|
|
protected void |
onDestroy()
|
|
protected void |
onDraw()
|
|
protected void |
onInit()
|
|
protected void |
setAttribute(String attribute,
BaseClass[] value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
BaseWidget[] value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
BaseWidget value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
Boolean value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
DataClass[] value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
DataClass value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
Date value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
double value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
Element value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
Float[] value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
float value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
int[] value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
Integer value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
JavaScriptObject[] value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
JavaScriptObject value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
Map value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
Object[] value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
String[] value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
String value,
boolean allowPostCreate)
|
|
protected void |
setAttribute(String attribute,
ValueEnum value,
boolean allowPostCreate)
|
|
void |
setConfig(JavaScriptObject config)
|
|
void |
setConfigOnly(boolean configOnly)
|
|
protected boolean |
setDragTracker()
|
|
protected void |
setElement(Element elem)
|
|
void |
setHtmlElement(Element element)
|
|
void |
setID(String id)
|
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.core.LogicalStructureObject s)
|
|
void |
setNullProperty(String property)
|
|
void |
setPosition(String position)
|
|
void |
setProperty(String property,
boolean value)
|
|
void |
setProperty(String property,
double value)
|
|
void |
setProperty(String property,
Element value)
|
|
void |
setProperty(String property,
float value)
|
|
void |
setProperty(String property,
int value)
|
|
void |
setProperty(String property,
JavaScriptObject value)
|
|
void |
setProperty(String property,
String value)
|
|
void |
setScClassName(String scClassName)
Set the name of the underlying SmartClient class. |
|
void |
setTitle(String title)
|
|
String |
toString()
|
|
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, setWidth, sinkBitlessEvent, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String id
protected JavaScriptObject config
protected boolean isElementSet
protected String scClassName
protected boolean configOnly
public NativeObject nativeObject
| Constructor Detail |
|---|
public BaseWidget()
protected BaseWidget(JavaScriptObject jsObj)
public BaseWidget(String id)
| Method Detail |
|---|
public void fireEvent(GwtEvent<?> event)
fireEvent in interface HasHandlersfireEvent in class Widget
protected final <H extends EventHandler> HandlerRegistration doAddHandler(H handler,
GwtEvent.Type<H> type)
H - the type of handler to addtype - the event typehandler - the handler
HandlerRegistration used to remove the handlerpublic int getHandlerCount(GwtEvent.Type<?> type)
getHandlerCount in class Widgetpublic static BaseWidget getRef(JavaScriptObject jsObj)
protected void setElement(Element elem)
setElement in class UIObjectpublic String getScClassName()
public void setScClassName(String scClassName)
scClassName - the SmartClient classprotected final void doInit()
protected void onInit()
public boolean isConfigOnly()
public void setConfigOnly(boolean configOnly)
protected boolean setDragTracker()
public String getInnerHTML()
Note : Canvas.setRedrawOnResize(java.lang.Boolean) should be set to true for components whose inner HTML
will not automatically reflow to fit the component's new size.
public void draw()
public void destroy()
Like Canvas.clear() calling destroy() removes all HTML for the component;
unlike clear(), a destroyed Canvas is permanently unusable: it cannot be draw()'n again and
cannot be referenced by its global ID. This method also removes all JavaScript references to
the Canvas outside of application code, making it eligible for garbage collection (though
developers will need to release any references to the canvas held in application code themselves).
Any attempt to call a method on a destroyed Canvas will generally result in an error. If your
application is forced to hold onto Canvas's that might be destroy()d without warning, you can
avoid errors by checking for the Canvas.getDestroyed() property. If you override certain Canvas
methods, your code may be called while a Canvas is being destroy()d; in this case you can avoid
extra work (and possibly errors) by checking for the +Canvas.getDestroying() property.
Note that destroy() should not be called directly in event handling code for this
canvas. For this reason, wherever possible we recommend using Canvas.markForDestroy()
instead of calling this method directly.
Note: This is an override point
public void doOnRender(Function function)
public HandlerRegistration addDrawHandler(DrawHandler handler)
protected void onDraw()
protected void onDestroy()
public Element getElement()
getElement in class UIObjectpublic Element getElement(boolean allowPreRender)
public void setPosition(String position)
public void setHtmlElement(Element element)
public Element getDOM()
public String getID()
public void setID(String id)
public JavaScriptObject getConfig()
public void setConfig(JavaScriptObject config)
public boolean isCreated()
protected Boolean isDrawn()
public JavaScriptObject getJsObj()
public JavaScriptObject getOrCreateJsObj()
protected JavaScriptObject create()
protected String getAttribute(String attribute)
protected String getAttributeAsString(String property)
protected String[] getAttributeAsStringArray(String property)
protected int[] getAttributeAsIntArray(String property)
protected Float[] getAttributeAsFloatArray(String property)
protected Date getAttributeAsDate(String property)
protected Date[] getAttributeAsDateArray(String property)
protected Integer getAttributeAsInt(String property)
protected Double getAttributeAsDouble(String property)
protected Element getAttributeAsElement(String property)
protected JavaScriptObject getAttributeAsJavaScriptObject(String property)
protected Float getAttributeAsFloat(String property)
protected Boolean getAttributeAsBoolean(String property)
protected Map getAttributeAsMap(String property)
protected void errorIfNotCreated(String property)
throws IllegalStateException
IllegalStateException
protected void error(String message)
throws IllegalStateException
IllegalStateException
protected void setAttribute(String attribute,
String value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
ValueEnum value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
BaseWidget value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
Map value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
int[] value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
Float[] value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
DataClass value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
DataClass[] value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
JavaScriptObject[] value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
BaseClass[] value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
BaseWidget[] value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
float value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
double value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
Integer value,
boolean allowPostCreate)
public void setNullProperty(String property)
public void setProperty(String property,
String value)
public void setProperty(String property,
boolean value)
public void setProperty(String property,
int value)
public void setProperty(String property,
float value)
public void setProperty(String property,
double value)
public void setProperty(String property,
Element value)
public void setProperty(String property,
JavaScriptObject value)
protected void setAttribute(String attribute,
Date value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
JavaScriptObject value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
String[] value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
Object[] value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
Boolean value,
boolean allowPostCreate)
protected void setAttribute(String attribute,
Element value,
boolean allowPostCreate)
public void setTitle(String title)
setTitle in class UIObjectpublic String getTitle()
getTitle in class UIObjectpublic String toString()
toString in class UIObjectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.core.LogicalStructureObject s)
setLogicalStructure in interface LogicalStructurepublic com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
getLogicalStructure in interface LogicalStructurepublic void initNativeObject()
initNativeObject in interface LogicalStructure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||