public class PushButton extends CustomButton
CustomButton.Face
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Constructor and Description |
---|
PushButton()
Constructor for
PushButton . |
PushButton(Image upImage)
Constructor for
PushButton . |
PushButton(Image upImage,
ClickHandler handler)
Constructor for
PushButton . |
PushButton(Image upImage,
ClickListener listener)
Deprecated.
Use
PushButton(Image, ClickHandler) instead |
PushButton(Image upImage,
Image downImage)
Constructor for
PushButton . |
PushButton(Image upImage,
Image downImage,
ClickHandler handler)
Constructor for
PushButton . |
PushButton(Image upImage,
Image downImage,
ClickListener listener)
Deprecated.
Use
PushButton(Image, Image, ClickHandler) instead |
PushButton(String upText)
Constructor for
PushButton . |
PushButton(String upText,
ClickHandler handler)
Constructor for
PushButton . |
PushButton(String upText,
ClickListener listener)
Deprecated.
Use
PushButton(String, ClickHandler) instead |
PushButton(String upText,
String downText)
Constructor for
PushButton . |
PushButton(String upText,
String downText,
ClickHandler handler)
Constructor for
PushButton . |
PushButton(String upText,
String downText,
ClickListener listener)
Deprecated.
Use
PushButton(String, String, ClickHandler) instead |
Modifier and Type | Method and Description |
---|---|
protected void |
onClick()
Called when the user finishes clicking on this button.
|
protected void |
onClickCancel()
Called when the user aborts a click in progress; for example, by dragging
the mouse outside of the button before releasing the mouse button.
|
protected void |
onClickStart()
Called when the user begins to click on this button.
|
getDownDisabledFace, getDownFace, getDownHoveringFace, getHTML, getTabIndex, getText, getUpDisabledFace, getUpFace, getUpHoveringFace, isDown, onAttach, onBrowserEvent, onDetach, setAccessKey, setDown, setEnabled, setFocus, setHTML, setHTML, setTabIndex, setText
addBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getFocusImpl, isEnabled, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
fireEvent
public PushButton()
PushButton
.public PushButton(Image upImage)
PushButton
.upImage
- image for the default(up) face of the buttonpublic PushButton(Image upImage, ClickHandler handler)
PushButton
. The supplied image is used to
construct the default face of the button.upImage
- image for the default (up) face of the buttonhandler
- teh click handler@Deprecated public PushButton(Image upImage, ClickListener listener)
PushButton(Image, ClickHandler)
insteadPushButton
. The supplied image is used to
construct the default face of the button.upImage
- image for the default (up) face of the buttonlistener
- the click listenerpublic PushButton(Image upImage, Image downImage)
PushButton
.upImage
- image for the default(up) face of the buttondownImage
- image for the down face of the buttonpublic PushButton(Image upImage, Image downImage, ClickHandler handler)
PushButton
.upImage
- image for the default(up) face of the buttondownImage
- image for the down face of the buttonhandler
- the click handler@Deprecated public PushButton(Image upImage, Image downImage, ClickListener listener)
PushButton(Image, Image, ClickHandler)
insteadPushButton
.upImage
- image for the default(up) face of the buttondownImage
- image for the down face of the buttonlistener
- clickListenerpublic PushButton(String upText)
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.public PushButton(String upText, ClickHandler handler)
PushButton
. The supplied text is used to
construct the default face of the button.upText
- the text for the default (up) face of the buttonhandler
- the click handler@Deprecated public PushButton(String upText, ClickListener listener)
PushButton(String, ClickHandler)
insteadPushButton
. The supplied text is used to
construct the default face of the button.upText
- the text for the default (up) face of the buttonlistener
- the click listenerpublic PushButton(String upText, String downText)
PushButton
.upText
- the text for the default (up) face of the buttondownText
- the text for down face of the buttonpublic PushButton(String upText, String downText, ClickHandler handler)
PushButton
.upText
- the text for the default (up) face of the buttondownText
- the text for down face of the buttonhandler
- the click handler@Deprecated public PushButton(String upText, String downText, ClickListener listener)
PushButton(String, String, ClickHandler)
insteadPushButton
.upText
- the text for the default (up) face of the buttondownText
- the text for down face of the buttonlistener
- the click listenerprotected void onClick()
CustomButton
CustomButton.onClickStart()
should override this method to restore the normal
widget display.onClick
in class CustomButton
protected void onClickCancel()
CustomButton
CustomButton.onClickStart()
should override this
method to restore the normal widget display.onClickCancel
in class CustomButton
protected void onClickStart()
CustomButton
CustomButton.onClick()
and
CustomButton.onClickCancel()
to restore normal visual state. Each
onClickStart
will eventually be followed by either
onClick
or onClickCancel
, depending on whether
the click is completed.onClickStart
in class CustomButton
Copyright © 2018. All rights reserved.