public class ToggleButton extends CellButtonBase<Boolean>
valueUpdater
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, resizeHandler, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
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.
|
protected void |
onFocus(Event ce) |
void |
setAllowDepress(boolean allowDepress)
True to allow a toggle item to be depressed (defaults to true).
|
addArrowSelectHandler, addBeforeSelectHandler, addSelectHandler, createContext, getArrowAlign, getHTML, getIcon, getIconAlign, getMenu, getMenuAlign, getMinWidth, getMouseEvents, getScale, getText, hideMenu, onBrowserEvent, onClick, onRedraw, onUnload, setArrowAlign, setHTML, setIcon, setIconAlign, setMenu, setMenuAlign, setMinWidth, setMouseEvents, setScale, setTabIndex, setText, showMenu
addValueChangeHandler, getElement, getFocusEl, getKey, getKeyProvider, getValue, onDisable, onEnable, onResize, redraw, redraw, setKeyProvider, setValue, setValue, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addGestureRecognizer, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disable, disableContextMenu, disableEvents, enable, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getFocusSupport, getGestureRecognizer, getGestureRecognizerCount, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAfterFirstAttach, onAttach, onBlur, onDetach, onHide, onHideContextMenu, onLoad, onPosition, onRightClick, onShow, onShowContextMenu, onTouch, onWindowResize, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setMonitorWindowResize, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
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 © 2018. All rights reserved.