Example usage for Java com.google.gwt.user.client.ui Widget fields, constructors, methods, implement or subclass
The text is from its open source code.
HandlerRegistration | addAttachHandler(Handler handler) |
HandlerRegistration | addBitlessDomHandler(final H handler, DomEvent.Type For browsers which do not leak, adds a native event handler to the widget. |
HandlerRegistration | addDomHandler(final H handler, DomEvent.Type Adds a native event handler to the widget and sinks the corresponding native event. |
HandlerRegistration | addHandler(final H handler, GwtEvent.Type Adds this handler to the widget. |
void | addStyleDependentName(String styleSuffix) Adds a dependent style name by specifying the style name's suffix. |
void | addStyleName(String style) Adds a secondary or dependent style name to this object. |
Widget | asWidget() |
Widget | asWidgetOrNull(IsWidget w) This convenience method makes a null-safe call to IsWidget#asWidget() . |
void | ensureDebugId(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. |
void | fireEvent(GwtEvent> event) |
int | getAbsoluteLeft() Gets the object's absolute left position in pixels, as measured from the browser window's client area. |
int | getAbsoluteTop() Gets the object's absolute top position in pixels, as measured from the browser window's client area. |
Element | getElement() Gets a handle to the object's underlying DOM element. |
Object | getLayoutData() Gets the panel-defined layout data associated with this widget. |
int | getOffsetHeight() |
int | getOffsetWidth() |
Widget | getParent() Gets this widget's parent panel. |
String | getStyleName() Gets all of the object's style names, as a space-separated list. |
String | getStylePrimaryName() Gets the primary style name associated with the object. |
String | getTitle() Gets the title associated with this object. |
boolean | isAttached() 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). |
boolean | isVisible() |
void | removeFromParent() Removes this widget from its parent widget, if one exists. |
void | removeStyleDependentName(String styleSuffix) Removes a dependent style name by specifying the style name's suffix. |
void | removeStyleName(String style) Removes a style name. |
void | setHeight(String height) Sets the object's height. |
void | setLayoutData(Object layoutData) Sets the panel-defined layout data associated with this widget. |
void | setParent(Widget parent) Sets this widget's parent. |
void | setPixelSize(int width, int height) Sets the object's size, in pixels, not including decorations such as border, margin, and padding. |
void | setSize(String width, String height) Sets the object's size. |
void | setStyleDependentName(String styleSuffix, boolean add) Adds or removes a dependent style name by specifying the style name's suffix. |
void | setStyleName(String style) Clears all of the object's style names and sets it to the given style. |
void | setStyleName(Element elem, String styleName) Clears all of the element's style names and sets it to the given style. |
void | setStylePrimaryName(String style) Sets the object's primary style name and updates all dependent style names. |
void | setTitle(String title) Sets the title associated with this object. |
void | setVisible(boolean visible) |
void | setWidth(String width) Sets the object's width. |
void | sinkBitlessEvent(String eventTypeName) Sinks a named event. |
void | sinkEvents(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. |
String | toString() This method is overridden so that any object can be viewed in the debugger as an HTML snippet. |