|
||||||||||
| 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.vaadin.terminal.gwt.client.ui.button.VButton
public class VButton
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
protected com.google.gwt.dom.client.Element |
captionElement
|
static String |
CLASSNAME
|
protected boolean |
clickPending
Helper flag to handle special-case where the button is moved from under mouse while clicking it. |
protected int |
clickShortcut
|
protected ApplicationConnection |
client
|
protected com.google.gwt.dom.client.Element |
errorIndicatorElement
|
protected Icon |
icon
|
protected int |
mousedownX
|
protected int |
mousedownY
|
protected static int |
MOVE_THRESHOLD
|
protected com.google.gwt.dom.client.Element |
wrapper
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
VButton()
|
|
| Method Summary | |
|---|---|
boolean |
isEnabled()
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
|
protected void |
onClick()
Called internally when the user finishes clicking on this button. |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event)
|
void |
setEnabled(boolean enabled)
Sets whether this button is enabled. |
void |
setTabIndex(int index)
|
void |
setText(String text)
|
| Methods inherited from class com.google.gwt.user.client.ui.FocusWidget |
|---|
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, getTabIndex, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setFocus |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
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, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Field Detail |
|---|
public static final String CLASSNAME
protected static int MOVE_THRESHOLD
protected int mousedownX
protected int mousedownY
protected ApplicationConnection client
protected final com.google.gwt.dom.client.Element wrapper
protected com.google.gwt.dom.client.Element errorIndicatorElement
protected final com.google.gwt.dom.client.Element captionElement
protected Icon icon
protected boolean clickPending
protected int clickShortcut
| Constructor Detail |
|---|
public VButton()
| Method Detail |
|---|
public void setText(String text)
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetpublic void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerprotected void onClick()
#onClickStart() should override this method to restore
the normal widget display.
To add custom code for a click event, override
onClick(ClickEvent) instead of this.
public final void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledsetEnabled in class com.google.gwt.user.client.ui.FocusWidgetenabled - true to enable the button, false to
disable itpublic final boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledisEnabled in class com.google.gwt.user.client.ui.FocusWidgetpublic final void setTabIndex(int index)
setTabIndex in interface com.google.gwt.user.client.ui.FocusablesetTabIndex in class com.google.gwt.user.client.ui.FocusWidget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||