Java com.google.gwt.user.client.ui Widget fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.user.client.ui Widget fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.user.client.ui Widget.

The text is from its open source code.

Subclass

com.google.gwt.user.client.ui.Widget has subclasses.
Click this link to see all its subclasses.

Constructor

Method

HandlerRegistrationaddAttachHandler(Handler handler)
HandlerRegistrationaddBitlessDomHandler(final H handler, DomEvent.Type type)
For browsers which do not leak, adds a native event handler to the widget.
HandlerRegistrationaddDomHandler(final H handler, DomEvent.Type type)
Adds a native event handler to the widget and sinks the corresponding native event.
HandlerRegistrationaddHandler(final H handler, GwtEvent.Type type)
Adds this handler to the widget.
voidaddStyleDependentName(String styleSuffix)
Adds a dependent style name by specifying the style name's suffix.
voidaddStyleName(String style)
Adds a secondary or dependent style name to this object.
WidgetasWidget()
WidgetasWidgetOrNull(IsWidget w)
This convenience method makes a null-safe call to IsWidget#asWidget() .
voidensureDebugId(String id)
Ensure that the main Element for this UIObject has an ID property set, which allows it to integrate with third-party libraries and test tools.
voidfireEvent(GwtEvent event)
intgetAbsoluteLeft()
Gets the object's absolute left position in pixels, as measured from the browser window's client area.
intgetAbsoluteTop()
Gets the object's absolute top position in pixels, as measured from the browser window's client area.
ElementgetElement()
Gets a handle to the object's underlying DOM element.
ObjectgetLayoutData()
Gets the panel-defined layout data associated with this widget.
intgetOffsetHeight()
intgetOffsetWidth()
WidgetgetParent()
Gets this widget's parent panel.
StringgetStyleName()
Gets all of the object's style names, as a space-separated list.
StringgetStylePrimaryName()
Gets the primary style name associated with the object.
StringgetTitle()
Gets the title associated with this object.
booleanisAttached()
Determines whether this widget is currently attached to the browser's document (i.e., there is an unbroken chain of widgets between this widget and the underlying browser document).
booleanisVisible()
voidremoveFromParent()
Removes this widget from its parent widget, if one exists.
voidremoveStyleDependentName(String styleSuffix)
Removes a dependent style name by specifying the style name's suffix.
voidremoveStyleName(String style)
Removes a style name.
voidsetHeight(String height)
Sets the object's height.
voidsetLayoutData(Object layoutData)
Sets the panel-defined layout data associated with this widget.
voidsetParent(Widget parent)
Sets this widget's parent.
voidsetPixelSize(int width, int height)
Sets the object's size, in pixels, not including decorations such as border, margin, and padding.
voidsetSize(String width, String height)
Sets the object's size.
voidsetStyleDependentName(String styleSuffix, boolean add)
Adds or removes a dependent style name by specifying the style name's suffix.
voidsetStyleName(String style)
Clears all of the object's style names and sets it to the given style.
voidsetStyleName(Element elem, String styleName)
Clears all of the element's style names and sets it to the given style.
voidsetStylePrimaryName(String style)
Sets the object's primary style name and updates all dependent style names.
voidsetTitle(String title)
Sets the title associated with this object.
voidsetVisible(boolean visible)
voidsetWidth(String width)
Sets the object's width.
voidsinkBitlessEvent(String eventTypeName)
Sinks a named event.
voidsinkEvents(int eventBitsToAdd)
Overridden to defer the call to super.sinkEvents until the first time this widget is attached to the dom, as a performance enhancement.
StringtoString()
This method is overridden so that any object can be viewed in the debugger as an HTML snippet.