public class Button extends com.google.gwt.user.client.ui.HTML implements DragEventsHandler, IsSWMMobileWidget, com.google.gwt.event.dom.client.HasTouchStartHandlers, com.google.gwt.event.dom.client.HasClickHandlers
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
Button()
Default constructor.
|
Button(String caption)
Constructor.
|
Button(String caption,
com.google.gwt.event.dom.client.ClickHandler handler)
Constructor.
|
Button(String caption,
FastClickHelper.FastClickHandler handler)
Deprecated.
not working in iOS
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDisabled() |
void |
onDragEnd(DragEvent e)
When the drag ends
|
void |
onDragMove(DragEvent e)
When the drag is ongoing.
|
void |
onDragStart(DragEvent e)
When the drag starts.
|
void |
onInitialLoad()
When the widget is loaded first time.
|
void |
onLoad() |
void |
onTransitionEnd()
When an transition containing this widget ends.
|
void |
onUnload() |
void |
setCaption(String caption)
Sets the cation of the button
|
void |
setDisabled(boolean disabled)
Disables/Enables the button.
|
void |
setSecondaryStyle(String style)
Will set the secondary style.
|
getHTML, getTextOrHtml, setHTML, setHTML, setHTML, setHTML, wrapaddClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, asEditor, getDirection, getText, getTextDirection, removeClickListener, removeMouseListener, removeMouseWheelListener, setDirection, setText, setTextgetAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignmentaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementaddTouchStartHandlerpublic Button()
public Button(String caption, com.google.gwt.event.dom.client.ClickHandler handler)
caption - the caption.handler - click handler.@Deprecated public Button(String caption, FastClickHelper.FastClickHandler handler)
caption - the captionhandler - the fast click handler.public Button(String caption)
caption - the caption.public void setCaption(String caption)
caption - the captionpublic void onLoad()
onLoad in class com.google.gwt.user.client.ui.Widgetpublic void onUnload()
onUnload in class com.google.gwt.user.client.ui.Widgetpublic void onDragStart(DragEvent e)
DragEventsHandleronDragStart in interface DragEventsHandlere - drag eventpublic void onDragMove(DragEvent e)
DragEventsHandleronDragMove in interface DragEventsHandlere - drag eventpublic void onDragEnd(DragEvent e)
DragEventsHandleronDragEnd in interface DragEventsHandlere - drag eventpublic void setDisabled(boolean disabled)
disabled - true if disabledpublic boolean isDisabled()
public void onInitialLoad()
IsSWMMobileWidgetonInitialLoad in interface IsSWMMobileWidgetpublic void onTransitionEnd()
IsSWMMobileWidgetonTransitionEnd in interface IsSWMMobileWidgetpublic void setSecondaryStyle(String style)
IsSWMMobileWidgetsetSecondaryStyle in interface IsSWMMobileWidgetstyle - the style to set.Copyright © 2011–2015 SWM. All rights reserved.