java.lang.Object | ||||||
↳ | com.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.CustomButton | |||||
↳ | com.google.gwt.user.client.ui.PushButton |
A normal push button with custom styling.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for
PushButton . | |||||||||||
Constructor for
PushButton . | |||||||||||
Constructor for
PushButton . | |||||||||||
This constructor is deprecated.
Use
PushButton(Image, ClickHandler) instead
| |||||||||||
Constructor for
PushButton . | |||||||||||
Constructor for
PushButton . | |||||||||||
This constructor is deprecated.
Use
PushButton(Image, Image, ClickHandler) instead
| |||||||||||
Constructor for
PushButton . | |||||||||||
Constructor for
PushButton . | |||||||||||
This constructor is deprecated.
Use
PushButton(String, ClickHandler) instead
| |||||||||||
Constructor for
PushButton . | |||||||||||
Constructor for
PushButton . | |||||||||||
This constructor is deprecated.
Use
PushButton(String, String, ClickHandler) instead
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when the user finishes clicking on this button.
| |||||||||||
Called when the user aborts a click in progress; for example, by dragging
the mouse outside of the button before releasing the mouse button.
| |||||||||||
Called when the user begins to click on this button.
|
Constructor for PushButton
.
Constructor for PushButton
.
upImage | image for the default(up) face of the button |
---|
Constructor for PushButton
. The supplied image is used to
construct the default face of the button.
upImage | image for the default (up) face of the button |
---|---|
handler | teh click handler |
This constructor is deprecated.
Use PushButton(Image, ClickHandler)
instead
Constructor for PushButton
. The supplied image is used to
construct the default face of the button.
upImage | image for the default (up) face of the button |
---|---|
listener | the click listener |
Constructor for PushButton
.
upImage | image for the default(up) face of the button |
---|---|
downImage | image for the down face of the button |
Constructor for PushButton
.
upImage | image for the default(up) face of the button |
---|---|
downImage | image for the down face of the button |
handler | the click handler |
This constructor is deprecated.
Use PushButton(Image, Image, ClickHandler)
instead
Constructor for PushButton
.
upImage | image for the default(up) face of the button |
---|---|
downImage | image for the down face of the button |
listener | clickListener |
Constructor for PushButton
. The supplied text is used to
construct the default face of the button.
upText | the text for the default (up) face of the button. |
---|
Constructor for PushButton
. The supplied text is used to
construct the default face of the button.
upText | the text for the default (up) face of the button |
---|---|
handler | the click handler |
This constructor is deprecated.
Use PushButton(String, ClickHandler)
instead
Constructor for PushButton
. The supplied text is used to
construct the default face of the button.
upText | the text for the default (up) face of the button |
---|---|
listener | the click listener |
Constructor for PushButton
.
upText | the text for the default (up) face of the button |
---|---|
downText | the text for down face of the button |
Constructor for PushButton
.
upText | the text for the default (up) face of the button |
---|---|
downText | the text for down face of the button |
handler | the click handler |
This constructor is deprecated.
Use PushButton(String, String, ClickHandler)
instead
Constructor for PushButton
.
upText | the text for the default (up) face of the button |
---|---|
downText | the text for down face of the button |
listener | the click listener |
Called when the user finishes clicking on this button. The default behavior
is to fire the click event to listeners. Subclasses that override
onClickStart()
should override this method to restore the normal
widget display.
Called when the user aborts a click in progress; for example, by dragging
the mouse outside of the button before releasing the mouse button.
Subclasses that override onClickStart()
should override this
method to restore the normal widget display.
Called when the user begins to click on this button. Subclasses may
override this method to display the start of the click visually; such
subclasses should also override onClick()
and
onClickCancel()
to restore normal visual state. Each
onClickStart
will eventually be followed by either
onClick
or onClickCancel
, depending on whether
the click is completed.