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, validate
focusNext, focusPrevious
add, 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, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
blur, click, focus, getElement
addChangeHandler, addChangeHandler
addInputHandler, addInputHandler
addEventHandler, addEventHandler
addBlurHandler, addBlurHandler
addFocusHandler, addFocusHandler
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
addAttachHandler
addDetachHandler
addTransitionEndHandler, addTransitionEndHandler
addMouseDownHandler, addMouseDownHandler
addMouseMoveHandler, addMouseMoveHandler
addMouseOutHandler, addMouseOutHandler
addMouseOverHandler, addMouseOverHandler
addMouseUpHandler, addMouseUpHandler
addWheelHandler, addWheelHandler
addClickHandler, addClickHandler
addDoubleClickHandler, addDoubleClickHandler
addContextMenuHandler, addContextMenuHandler
addTouchStartHandler, addTouchStartHandler
addTouchMoveHandler, addTouchMoveHandler
addTouchForceChangeHandler, addTouchForceChangeHandler
addTouchEndHandler, addTouchEndHandler
addTouchCancelHandler, addTouchCancelHandler
addTouchHoldHandler
addTapHandler
addDoubleTapHandler
addKeyDownHandler, addKeyDownHandler
addKeyUpHandler, addKeyUpHandler
addKeyPressHandler, addKeyPressHandler
addScrollHandler, addScrollHandler
addAnimationStartHandler, addAnimationStartHandler
addAnimationIterationHandler, addAnimationIterationHandler
addAnimationEndHandler, addAnimationEndHandler
addActionHandler
addDoubleActionHandler
protected 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()
Field
validate
.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.