public class ToggleButtonCell extends ButtonCell<Boolean>
ButtonCell.ButtonArrowAlign, ButtonCell.ButtonCellAppearance<C>, ButtonCell.ButtonScale, ButtonCell.IconAlign
Cell.Context
Constructor and Description |
---|
ToggleButtonCell()
Creates a toggle button cell with default appearance.
|
ToggleButtonCell(ButtonCell.ButtonCellAppearance<Boolean> appearance)
Creates a toggle button cell with the specified appearance.
|
Modifier and Type | Method and Description |
---|---|
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, disable, enable, getAppearance, getArrowAlign, getFocusElement, getHTML, getIcon, getIconAlign, getMenu, getMenuAlign, getMinWidth, getMouseEvents, getScale, getText, hideMenu, onBrowserEvent, redrawOnResize, render, setArrowAlign, setHTML, setHTML, setIcon, setIconAlign, setMenu, setMenuAlign, setMinWidth, setMouseEvents, setScale, setText, showMenu
getHeight, getWidth, setHeight, setSize, setSize, setWidth
addHandler, fireEvent, isDisableEvents, setDisableEvents
dependsOnSelection, getConsumedEvents, handlesSelection, isEditing, resetFocus, setValue
public ToggleButtonCell()
public ToggleButtonCell(ButtonCell.ButtonCellAppearance<Boolean> appearance)
appearance
- the appearance of the toggle button cell.public boolean isAllowDepress()
public void setAllowDepress(boolean allowDepress)
allowDepress
- true to allow depressingCopyright © 2015. All rights reserved.