public class CheckBoxField extends Field<HTMLDivElement,CheckBoxField,Boolean> implements IsFocusable<HTMLDivElement,CheckBoxField>, HasChangeHandlers<CheckBoxField>, HasInputHandlers<CheckBoxField>
| Modifier and Type | Field and Description |
|---|---|
protected com.xalys.xgl.forms.CheckBoxField.CheckBox |
checkbox |
protected HTMLLabelElement |
labelSpan |
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER| Constructor and Description |
|---|
CheckBoxField() |
CheckBoxField(HTMLDivElement element,
String label) |
CheckBoxField(String label) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getValue() |
boolean |
isChecked() |
boolean |
isValid()
Returns whether the field is currently marked as valid or not.
|
CheckBoxField |
reset() |
CheckBoxField |
setChecked(boolean checked) |
CheckBoxField |
setEnabled(boolean enabled) |
CheckBoxField |
setReadOnly(boolean readOnly)
Sets the read only status
|
CheckBoxField |
setValue(Boolean value) |
addFieldChangeHandler, addValidator, fireFieldChangeEvent, getValidators, isReadOnly, removeValidator, setValue, validate, validatefocusNext, focusPreviousadd, addActionHandler, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireEvent, fireEvent, fireResizeEvent, getAbsoluteLeft, getAbsoluteTop, getAncestor, getChildren, getChildrenCount, getComputedStyle, getContextMenu, getContextMenuHandler, getDeepestWidget, getDragSource, getDropTargetList, getElement, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getOffsetHeight, getOffsetWidth, getParent, getScrollLeft, getScrollTop, getStyle, hasClassName, hasFocus, insert, isAttached, isDropTarget, isEnabled, isInEventThread, onAttach, onDetach, remove, removeClassName, removeDropTarget, removeStyleName, setBackgroundColor, setClassName, setContextMenu, setDragSource, setDropTarget, setHeight, setHeight, setHeight, setId, setLeft, setLeftAndTop, setMaxHeight, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setMinWidth, setParent, setPixelSize, setScrollLeft, setScrollTop, setSize, setTextAlign, setTextColor, setTop, setWidth, setWidth, setWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitblur, click, focus, getElementaddChangeHandler, addChangeHandleraddInputHandler, addInputHandleraddEventHandler, addEventHandleraddBlurHandler, addBlurHandleraddFocusHandler, addFocusHandlercancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutationaddAttachHandleraddDetachHandleraddTransitionEndHandler, addTransitionEndHandleraddMouseDownHandler, addMouseDownHandleraddMouseMoveHandler, addMouseMoveHandleraddMouseOutHandler, addMouseOutHandleraddMouseOverHandler, addMouseOverHandleraddMouseUpHandler, addMouseUpHandleraddWheelHandler, addWheelHandleraddClickHandler, addClickHandleraddDoubleClickHandler, addDoubleClickHandleraddContextMenuHandler, addContextMenuHandleraddTouchStartHandler, addTouchStartHandleraddTouchMoveHandler, addTouchMoveHandleraddTouchForceChangeHandler, addTouchForceChangeHandleraddTouchEndHandler, addTouchEndHandleraddTouchCancelHandler, addTouchCancelHandleraddTouchHoldHandleraddTapHandleraddDoubleTapHandleraddKeyDownHandler, addKeyDownHandleraddKeyUpHandler, addKeyUpHandleraddKeyPressHandler, addKeyPressHandleraddScrollHandler, addScrollHandleraddAnimationStartHandler, addAnimationStartHandleraddAnimationIterationHandler, addAnimationIterationHandleraddAnimationEndHandler, addAnimationEndHandleraddActionHandleraddDoubleActionHandlerprotected com.xalys.xgl.forms.CheckBoxField.CheckBox checkbox
protected HTMLLabelElement labelSpan
public CheckBoxField()
public CheckBoxField(String label)
public CheckBoxField(HTMLDivElement element, String label)
public CheckBoxField setValue(Boolean value)
setValue in class Field<HTMLDivElement,CheckBoxField,Boolean>public Boolean getValue()
getValue in class Field<HTMLDivElement,CheckBoxField,Boolean>public boolean isValid()
Fieldvalidate.isValid in class Field<HTMLDivElement,CheckBoxField,Boolean>public CheckBoxField reset()
reset in class Field<HTMLDivElement,CheckBoxField,Boolean>public boolean isChecked()
public CheckBoxField setChecked(boolean checked)
public CheckBoxField setEnabled(boolean enabled)
setEnabled in class Widget<HTMLDivElement,CheckBoxField>public CheckBoxField setReadOnly(boolean readOnly)
setReadOnly in class Field<HTMLDivElement,CheckBoxField,Boolean>readOnly - the read only status to setCopyright © 2018 Xalys. All rights reserved.