org.gwtbootstrap3.client.ui
Class SimpleCheckBox

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.FocusWidget
              extended by com.google.gwt.user.client.ui.SimpleCheckBox
                  extended by org.gwtbootstrap3.client.ui.SimpleCheckBox
All Implemented Interfaces:
IsEditor<LeafValueEditor<Boolean>>, HasAllDragAndDropHandlers, HasAllFocusHandlers, HasAllGestureHandlers, HasAllKeyHandlers, HasAllMouseHandlers, HasAllTouchHandlers, HasBlurHandlers, HasChangeHandlers, HasClickHandlers, HasDoubleClickHandlers, HasDragEndHandlers, HasDragEnterHandlers, HasDragHandlers, HasDragLeaveHandlers, HasDragOverHandlers, HasDragStartHandlers, HasDropHandlers, HasFocusHandlers, HasGestureChangeHandlers, HasGestureEndHandlers, HasGestureStartHandlers, HasKeyDownHandlers, HasKeyPressHandlers, HasKeyUpHandlers, HasMouseDownHandlers, HasMouseMoveHandlers, HasMouseOutHandlers, HasMouseOverHandlers, HasMouseUpHandlers, HasMouseWheelHandlers, HasTouchCancelHandlers, HasTouchEndHandlers, HasTouchMoveHandlers, HasTouchStartHandlers, HasAttachHandlers, HasValueChangeHandlers<Boolean>, HasHandlers, EventListener, TakesValue<Boolean>, Focusable, HasEnabled, HasFocus, HasName, HasValue<Boolean>, HasVisibility, IsWidget, SourcesClickEvents, SourcesFocusEvents, SourcesKeyboardEvents, SourcesMouseEvents, HasFormValue, HasId, HasPull, HasResponsiveness

public class SimpleCheckBox
extends SimpleCheckBox
implements HasResponsiveness, HasId, HasPull, HasFormValue, HasChangeHandlers

A simple checkbox widget, with no label.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
  SimpleCheckBox()
          Creates a new simple checkbox.
protected SimpleCheckBox(InputElement element)
          This constructor may be used by subclasses to explicitly use an existing element.
 
Method Summary
 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.
 
Methods inherited from class com.google.gwt.user.client.ui.SimpleCheckBox
addValueChangeHandler, asEditor, getFormValue, getName, getValue, isChecked, onUnload, setChecked, setFormValue, setName, setValue, setValue
 
Methods inherited from class com.google.gwt.user.client.ui.FocusWidget
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
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gwtbootstrap3.client.ui.base.HasFormValue
getFormValue, setFormValue
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

SimpleCheckBox

public SimpleCheckBox()
Creates a new simple checkbox.


SimpleCheckBox

protected SimpleCheckBox(InputElement element)
This constructor may be used by subclasses to explicitly use an existing element. This element must be an <input> element whose type is 'checkbox'.

Parameters:
element - the element to be used
Method Detail

wrap

public static SimpleCheckBox wrap(Element element)
Creates a SimpleCheckBox widget that wraps an existing <input type='checkbox'> element. This element must already be attached to the document. If the element is removed from the document, you must call RootPanel.detachNow(Widget).

Parameters:
element - the element to be wrapped

addChangeHandler

public HandlerRegistration addChangeHandler(ChangeHandler handler)
Specified by:
addChangeHandler in interface HasChangeHandlers

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface HasEnabled
Overrides:
setEnabled in class SimpleCheckBox

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface HasEnabled
Overrides:
isEnabled in class FocusWidget

setId

public void setId(String id)
Sets the ID on the widget

Specified by:
setId in interface HasId
Parameters:
id - String desired ID

getId

public String getId()
Gets the ID of the widget

Specified by:
getId in interface HasId
Returns:
String widget ID

setVisibleOn

public void setVisibleOn(DeviceSize deviceSize)
Sets the devices that the element is visible on

Specified by:
setVisibleOn in interface HasResponsiveness
Parameters:
deviceSize - device size
See Also:
DeviceSize

setHiddenOn

public void setHiddenOn(DeviceSize deviceSize)
Sets the devices that the element is hidden on

Specified by:
setHiddenOn in interface HasResponsiveness
Parameters:
deviceSize - device sizes
See Also:
DeviceSize

setPull

public void setPull(Pull pull)

Specified by:
setPull in interface HasPull

getPull

public Pull getPull()

Specified by:
getPull in interface HasPull

ensureDomEventHandlers

protected void ensureDomEventHandlers()
Overrides:
ensureDomEventHandlers in class SimpleCheckBox


Copyright © 2015. All rights reserved.