public class CheckBox extends Field<Boolean> implements HasChangeHandlers
ValueChangeEvents are fired when the checkbox
state is changed by the user, instead of waiting for a BlurEvent.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledEditor.Ignore, Editor.PathDEBUG_ID_PREFIX| Constructor and Description |
|---|
CheckBox() |
CheckBox(CheckBoxCell cell) |
| Modifier and Type | Method and Description |
|---|---|
HandlerRegistration |
addChangeHandler(ChangeHandler handler) |
void |
clearInvalid()
Clear any invalid styles / messages for this field.
|
String |
getBoxLabel()
Returns the box label.
|
CheckBoxCell |
getCell()
Get the
Cell wrapped by this widget. |
void |
setBoxLabel(String boxLabel)
The text that appears beside the checkbox (defaults to null).
|
void |
setReadOnly(boolean readOnly)
Sets the field's read only state.
|
void |
setValue(Boolean value) |
addInvalidHandler, addValidator, addValidHandler, addValueChangeHandler, clear, finishEditing, forceInvalid, getErrorSupport, getName, getValidateOnBlur, getValidationDelay, getValidators, isAutoValidate, isEditing, isReadOnly, isValid, isValid, markInvalid, onBrowserEvent, redraw, removeValidator, reset, setAutoValidate, setDelegate, setErrorSupport, setName, setOriginalValue, setValidateOnBlur, setValidationDelay, setValue, showErrors, validate, validategetKeyProvider, getValue, setValueaddBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getStateId, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeHandler, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmaskaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEventsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventgetValuepublic CheckBox()
public CheckBox(CheckBoxCell cell)
public HandlerRegistration addChangeHandler(ChangeHandler handler)
addChangeHandler in interface HasChangeHandlerspublic void clearInvalid()
FieldclearInvalid in interface IsField<Boolean>clearInvalid in class Field<Boolean>public String getBoxLabel()
public CheckBoxCell getCell()
CellComponentCell wrapped by this widget.public void setBoxLabel(String boxLabel)
boxLabel - the box labelpublic void setReadOnly(boolean readOnly)
FieldsetReadOnly in class Field<Boolean>readOnly - the read only statepublic void setValue(Boolean value)
CellComponentThis method will redraw the widget if the new value does not equal the existing value.
setValue in interface TakesValue<Boolean>setValue in interface HasValue<Boolean>setValue in class CellComponent<Boolean>Copyright © 2012. All Rights Reserved.