public class DebugButton
extends com.google.gwt.user.client.ui.Button
Button
that is preconfigured with for use in
VDebugWindow
. Uses icon-font for icons, and allows title to be
specified in the constructor.Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
Constructor and Description |
---|
DebugButton(Icon icon)
Creates a
Button with the given icon-font icon. |
DebugButton(Icon icon,
String title)
Creates a
Button with the given icon-font icon and title
(tooltip). |
DebugButton(Icon icon,
String title,
String caption)
Creates a
Button with the given icon-font icon, title (tooltip),
and caption. |
Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
Indicates wheter the Button is currently in its active state or not.
|
void |
setActive(boolean active)
Adds or removes a stylename, indicating whether or not the button is in
it's active state.
|
getHTML, getText, setHTML, setHTML, 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, getTabIndex, isEnabled, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setEnabled, setFocus, setTabIndex
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, 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
public DebugButton(Icon icon)
Button
with the given icon-font icon. The icon id will
be used in the data-icon attribute of an <i> -tag.icon
- Identifier for the desired icon in an icon-fontpublic DebugButton(Icon icon, String title)
Button
with the given icon-font icon and title
(tooltip). The icon id will be used in the data-icon attribute of
an <i> -tag.icon
- Identifier for the desired icon in an icon-fonttitle
- Button title (tooltip)public DebugButton(Icon icon, String title, String caption)
Button
with the given icon-font icon, title (tooltip),
and caption. The icon id will be used in the data-icon attribute
of an <i> -tag.icon
- Identifier for the desired icon in an icon-fonttitle
- Title (tooltip)caption
- Button baptionpublic void setActive(boolean active)
active
- public boolean isActive()
Copyright © 2018 Vaadin Ltd. All rights reserved.