public class SimpleCheckBox extends SimpleCheckBox implements HasResponsiveness, HasId, HasPull, HasFormValue, HasChangeHandlers
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_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, setValue
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, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setFocus, setTabIndex
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onLoad, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFormValue, setFormValue
fireEvent
public 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 HasChangeHandlers
public void setEnabled(boolean enabled)
setEnabled
in interface HasEnabled
setEnabled
in class SimpleCheckBox
public boolean isEnabled()
isEnabled
in interface HasEnabled
isEnabled
in class FocusWidget
public void setVisibleOn(DeviceSize deviceSize)
setVisibleOn
in interface HasResponsiveness
deviceSize
- device sizeDeviceSize
public void setHiddenOn(DeviceSize deviceSize)
setHiddenOn
in interface HasResponsiveness
deviceSize
- device sizesDeviceSize
protected void ensureDomEventHandlers()
ensureDomEventHandlers
in class SimpleCheckBox
Copyright © 2017. All rights reserved.