|
||||||||||
| 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.google.gwt.user.client.ui.FocusWidget
com.google.gwt.user.client.ui.ButtonBase
com.google.gwt.user.client.ui.Button
public class Button
A standard push-button widget.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Button()
Creates a button with no caption. |
|
Button(java.lang.String html)
Creates a button with the given HTML caption. |
|
Button(java.lang.String html,
ClickHandler handler)
Creates a button with the given HTML caption and click listener. |
|
Button(java.lang.String html,
ClickListener listener)
Deprecated. Use Button(String, ClickHandler) instead |
|
| Method Summary | |
|---|---|
void |
click()
Programmatic equivalent of the user clicking the button. |
static Button |
wrap(Element element)
Creates a Button widget that wraps an existing <button> element. |
| Methods inherited from class com.google.gwt.user.client.ui.ButtonBase |
|---|
getHTML, getText, setHTML, setText |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public Button()
public Button(java.lang.String html)
html - the HTML caption
@Deprecated
public Button(java.lang.String html,
ClickListener listener)
Button(String, ClickHandler) instead
html - the HTML captionlistener - the click listener
public Button(java.lang.String html,
ClickHandler handler)
html - the HTML captionhandler - the click handler| Method Detail |
|---|
public static Button wrap(Element element)
RootPanel.detachNow(Widget).
element - the element to be wrappedpublic void click()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||