|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.form.Field<java.lang.Boolean>
com.extjs.gxt.ui.client.widget.form.CheckBox
public class CheckBox
Single checkbox field. Unlike other fields, checkbox fires change events when the radios state is changed, not on blur.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.Field |
|---|
Field.FieldImages, Field.FieldMessages |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
protected El |
boxLabelEl
|
protected El |
input
|
protected El |
wrap
|
| Fields inherited from class com.extjs.gxt.ui.client.widget.form.Field |
|---|
autoValidate, emptyText, errorIcon, fieldStyle, focusStyle, focusValue, forceInvalidText, hasFocus, images, invalidStyle, messages, name, originalValue, preventMark, propertyEditor, readOnly, readOnlyFieldStyle, validationDelay, validationTask, value |
| Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
| Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
CheckBox()
Creates a new checkbox. |
|
| Method Summary | |
|---|---|
protected void |
alignElements()
|
void |
clearInvalid()
Clear any invalid styles / messages for this field. |
java.lang.String |
getBoxLabel()
Returns the text displayed next to the checkbox. |
protected El |
getFocusEl()
|
protected El |
getInputEl()
Provides support for wrapping the actual input element. |
java.lang.String |
getRawValue()
Returns the raw data value which may or may not be a valid, defined value. |
protected El |
getStyleEl()
|
java.lang.Boolean |
getValue()
Returns the typed value of the field. |
java.lang.String |
getValueAttribute()
Returns the value property of the input element |
void |
markInvalid(java.lang.String msg)
Marks this field as invalid. |
protected void |
notifyShow()
|
protected void |
onAttach()
|
protected void |
onBlur(ComponentEvent be)
|
protected void |
onClick(ComponentEvent ce)
|
protected void |
onFocus(ComponentEvent ce)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
protected void |
onResize(int width,
int height)
Called after the component is resized, this method is empty by default but can be implemented by any subclass that needs to perform custom logic after a resize occurs. |
protected void |
setAriaState(java.lang.String stateName,
java.lang.String stateValue)
|
void |
setBoxLabel(java.lang.String boxLabelHtml)
The text that appears beside the checkbox (defaults to null). |
void |
setRawValue(java.lang.String value)
Sets the underlying DOM field's value directly, bypassing validation. |
void |
setValue(java.lang.Boolean value)
Sets a data value into the field and validates it. |
void |
setValueAttribute(java.lang.String valueAttribute)
Sets a new value attribute to the input element |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onPosition, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, resolvePotentialElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected El wrap
protected El input
protected El boxLabelEl
| Constructor Detail |
|---|
public CheckBox()
| Method Detail |
|---|
public void clearInvalid()
Field
clearInvalid in class Field<java.lang.Boolean>public java.lang.String getBoxLabel()
public java.lang.String getRawValue()
FieldField.getValue().
getRawValue in class Field<java.lang.Boolean>public java.lang.Boolean getValue()
Field
getValue in class Field<java.lang.Boolean>public java.lang.String getValueAttribute()
public void markInvalid(java.lang.String msg)
FieldField.forceInvalid(String)
markInvalid in class Field<java.lang.Boolean>msg - the validation message treated as HTMLpublic void setBoxLabel(java.lang.String boxLabelHtml)
boxLabelHtml - the box label treated as HTMLpublic void setRawValue(java.lang.String value)
FieldField.setValue(D).
setRawValue in class Field<java.lang.Boolean>value - the raw valuepublic void setValue(java.lang.Boolean value)
FieldField.setRawValue(java.lang.String).
setValue in class Field<java.lang.Boolean>value - the value to setpublic void setValueAttribute(java.lang.String valueAttribute)
valueAttribute - the value attribute to setprotected void alignElements()
protected El getFocusEl()
getFocusEl in class Componentprotected El getInputEl()
Field
getInputEl in class Field<java.lang.Boolean>protected El getStyleEl()
getStyleEl in class Field<java.lang.Boolean>protected void notifyShow()
notifyShow in class Componentprotected void onAttach()
onAttach in class Componentprotected void onBlur(ComponentEvent be)
onBlur in class Field<java.lang.Boolean>protected void onClick(ComponentEvent ce)
onClick in class Field<java.lang.Boolean>protected void onFocus(ComponentEvent ce)
onFocus in class Field<java.lang.Boolean>
protected void onRender(com.google.gwt.user.client.Element target,
int index)
Component
onRender in class Field<java.lang.Boolean>target - the target elementindex - the insert location
protected void onResize(int width,
int height)
BoxComponent
onResize in class Field<java.lang.Boolean>width - the widthheight - the height
protected void setAriaState(java.lang.String stateName,
java.lang.String stateValue)
setAriaState in class Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||