public class ToggleButton extends CellButtonBase<Boolean>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
Editor.Ignore, Editor.Path
DEBUG_ID_PREFIX
Constructor and Description |
---|
ToggleButton()
Creates a new toggle button.
|
ToggleButton(String text)
Creates a new toggle button.
|
ToggleButton(ToggleButtonCell cell)
Creates a new toggle button.
|
Modifier and Type | Method and Description |
---|---|
ToggleButtonCell |
getCell()
Get the
Cell wrapped by this widget. |
boolean |
isAllowDepress()
Returns the allow depress state.
|
void |
setAllowDepress(boolean allowDepress)
True to allow a toggle item to be depressed (defaults to true).
|
addArrowSelectHandler, addBeforeSelectHandler, addSelectHandler, getArrowAlign, getHTML, getIcon, getIconAlign, getMenu, getMenuAlign, getMinWidth, getMouseEvents, getScale, getText, hideMenu, onBrowserEvent, setArrowAlign, setHTML, setHTML, setIcon, setIconAlign, setMenu, setMenuAlign, setMinWidth, setMouseEvents, setScale, setTabIndex, setText, showMenu
addValueChangeHandler, getElement, getKeyProvider, getValue, redraw, setValue, setValue, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setToolTip, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
public ToggleButton()
public ToggleButton(String text)
text
- the button textpublic ToggleButton(ToggleButtonCell cell)
cell
- the toggle button cellpublic ToggleButtonCell getCell()
CellComponent
Cell
wrapped by this widget.getCell
in class CellButtonBase<Boolean>
Cell
being wrappedpublic boolean isAllowDepress()
public void setAllowDepress(boolean allowDepress)
allowDepress
- true to allow depressingCopyright © 2015. All rights reserved.