public class SimpleCheckBox extends SimpleCheckBox implements HasResponsiveness, HasId, HasPull, HasFormValue, HasChangeHandlers
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledDEBUG_ID_PREFIX| Modifier | Constructor and Description |
|---|---|
|
SimpleCheckBox()
Creates a new simple checkbox.
|
protected |
SimpleCheckBox(InputElement element)
This constructor may be used by subclasses to explicitly use an existing
element.
|
| Modifier and Type | Method and Description |
|---|---|
HandlerRegistration |
addChangeHandler(ChangeHandler handler) |
protected void |
ensureDomEventHandlers() |
String |
getId()
Gets the ID of the widget
|
Pull |
getPull() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setHiddenOn(DeviceSize deviceSize)
Sets the devices that the element is hidden on
|
void |
setId(String id)
Sets the ID on the widget
|
void |
setPull(Pull pull) |
void |
setVisibleOn(DeviceSize deviceSize)
Sets the devices that the element is visible on
|
static SimpleCheckBox |
wrap(Element element)
Creates a SimpleCheckBox widget that wraps an existing <input
type='checkbox'> element.
|
addValueChangeHandler, asEditor, getFormValue, getName, getValue, isChecked, onUnload, setChecked, setFormValue, setName, setValue, setValueaddBlurHandler, 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, setTabIndexaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormValue, setFormValuefireEventpublic SimpleCheckBox()
protected SimpleCheckBox(InputElement element)
element - the element to be usedpublic static SimpleCheckBox wrap(Element element)
RootPanel.detachNow(Widget).element - the element to be wrappedpublic HandlerRegistration addChangeHandler(ChangeHandler handler)
addChangeHandler in interface HasChangeHandlerspublic void setEnabled(boolean enabled)
setEnabled in interface HasEnabledsetEnabled in class SimpleCheckBoxpublic boolean isEnabled()
isEnabled in interface HasEnabledisEnabled in class FocusWidgetpublic void setVisibleOn(DeviceSize deviceSize)
setVisibleOn in interface HasResponsivenessdeviceSize - device sizeDeviceSizepublic void setHiddenOn(DeviceSize deviceSize)
setHiddenOn in interface HasResponsivenessdeviceSize - device sizesDeviceSizeprotected void ensureDomEventHandlers()
ensureDomEventHandlers in class SimpleCheckBoxCopyright © 2017. All rights reserved.