public class Checkbox extends CheckboxBase<CheckBoxStyle> implements IToggleFace<CheckBoxStyle>
CheckBox
Widget. A material check box can
have three different faces. To set the most suitable face the
setFace(CheckBoxStyle)
should be used.
CheckBoxStyle.CHECKBOX
to set the check box faceCheckBoxStyle.SWITCH
to set the switch faceCheckBoxStyle.ICON
to set the icon faceModifier | Constructor and Description |
---|---|
|
Checkbox()
Creates a check box with no label.
|
protected |
Checkbox(com.google.gwt.dom.client.Element elem) |
|
Checkbox(com.google.gwt.safehtml.shared.SafeHtml label)
Creates a check box with the specified text label.
|
|
Checkbox(com.google.gwt.safehtml.shared.SafeHtml label,
com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)
Creates a check box with the specified text label.
|
|
Checkbox(com.google.gwt.safehtml.shared.SafeHtml label,
com.google.gwt.i18n.client.HasDirection.Direction dir)
Creates a check box with the specified text label.
|
|
Checkbox(String label)
Creates a check box with the specified text label.
|
|
Checkbox(String label,
boolean asHTML)
Creates a check box with the specified text label.
|
|
Checkbox(String label,
com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)
Creates a label with the specified text and a default direction estimator.
|
|
Checkbox(String label,
com.google.gwt.i18n.client.HasDirection.Direction dir)
Creates a check box with the specified text label.
|
Modifier and Type | Method and Description |
---|---|
CheckBoxStyle |
getFace() |
void |
setFace(CheckBoxStyle flavor) |
addValueChangeHandler, asEditor, ensureDomEventHandlers, getContainer, getDirectionEstimator, getFormValue, getHTML, getInput, getLabel, getName, getRipple, getTabIndex, getText, getTextDirection, getToggle, getValue, getWordWrap, isChecked, isEnabled, isUpgraded, onEnsureDebugId, onLoad, onUnload, replaceInputElement, replaceInputElement, setAccessKey, setChecked, setDirectionEstimator, setDirectionEstimator, setEnabled, setFocus, setFormValue, setHTML, setHTML, setName, setRipple, setTabIndex, setText, setText, setValue, setValue, setWordWrap, upgrade
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, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public Checkbox()
public Checkbox(com.google.gwt.safehtml.shared.SafeHtml label)
label
- the check box's labelpublic Checkbox(com.google.gwt.safehtml.shared.SafeHtml label, com.google.gwt.i18n.client.HasDirection.Direction dir)
label
- the check box's labeldir
- the text's direction. Note that DEFAULT
means direction
should be inherited from the widget's parent element.public Checkbox(com.google.gwt.safehtml.shared.SafeHtml label, com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)
label
- the check box's labeldirectionEstimator
- A DirectionEstimator object used for automatic direction
adjustment.public Checkbox(String label)
label
- the check box's labelpublic Checkbox(String label, com.google.gwt.i18n.client.HasDirection.Direction dir)
label
- the check box's labeldir
- the text's direction. Note that DEFAULT
means direction
should be inherited from the widget's parent element.public Checkbox(String label, com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)
label
- the check box's labeldirectionEstimator
- A DirectionEstimator object used for automatic direction
adjustment.public Checkbox(String label, boolean asHTML)
label
- the check box's labelasHTML
- true
to treat the specified label as htmlprotected Checkbox(com.google.gwt.dom.client.Element elem)
elem
- the input elementpublic CheckBoxStyle getFace()
getFace
in interface IToggleFace<CheckBoxStyle>
public void setFace(CheckBoxStyle flavor)
setFace
in interface IToggleFace<CheckBoxStyle>
flavor
- the toggle face to be applied.Copyright © 2016 com.github.ilyes4j. All rights reserved.