|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.widget.core.client.ComponentHelper
public class ComponentHelper
Provides access to package protected methods of widget and convenience methods for easier widget bookkeeping.
| Constructor Summary | |
|---|---|
ComponentHelper()
|
|
| Method Summary | ||
|---|---|---|
static void |
doAttach(Widget widget)
Attach a widget |
|
static void |
doDetach(Widget widget)
Detaches a widget |
|
static HandlerManager |
ensureHandlers(Widget widget)
Returns the handler manager for the specified widget, creating it if necessary. |
|
static java.lang.String |
getWidgetId(Widget widget)
Retrieves the ID that has been set on a widget's element. |
|
static Widget |
getWidgetWithElement(Element element)
Find a the nearest widget that contains the given element. |
|
static boolean |
hasElement(Widget widget)
Determines if the widget has an Element |
|
static
|
removeHandler(Widget widget,
GwtEvent.Type<H> type,
H handler)
Removes a handler from the widget |
|
static void |
setParent(Widget parent,
Widget child)
Sets the child to the parent widget |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentHelper()
| Method Detail |
|---|
public static Widget getWidgetWithElement(Element element)
element - the element to start at
public static void doAttach(Widget widget)
widget - the widget to attachpublic static void doDetach(Widget widget)
widget - the widget to detachpublic static HandlerManager ensureHandlers(Widget widget)
widget - the widget
public static java.lang.String getWidgetId(Widget widget)
widget - The widget whose element's ID is to be retrieved. Must not be
null.
public static boolean hasElement(Widget widget)
widget - the target Element
public static <H extends EventHandler> void removeHandler(Widget widget,
GwtEvent.Type<H> type,
H handler)
widget - the target widgettype - the typehandler - the handler to remove
public static void setParent(Widget parent,
Widget child)
parent - the parent widgetchild - the child widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||