|
|||||||||
| 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.gwtext.client.widgets.Component
com.gwtext.client.widgets.BoxComponent
com.gwtext.client.widgets.form.Field
com.gwtext.client.widgets.form.Checkbox
public class Checkbox
Single checkbox field.
| Nested Class Summary |
|---|
| 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 |
|---|
| Fields inherited from class com.gwtext.client.widgets.Component |
|---|
config, id |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Checkbox()
Creates a new Checkbox field. |
|
Checkbox(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
Checkbox(java.lang.String boxLabel)
Creates a new Checkbox field. |
|
Checkbox(java.lang.String boxLabel,
CheckboxListener listener)
Creates a new Checkbox field. |
|
Checkbox(java.lang.String boxLabel,
java.lang.String name)
Creates a new Checkbox field. |
|
| Method Summary | |
|---|---|
void |
addListener(CheckboxListener listener)
Add a checkbox listener. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
java.lang.String |
getBoxLabel()
The box label. |
protected com.google.gwt.core.client.JavaScriptObject |
getConfigPrototype()
|
boolean |
getValue()
Returns the checked state of the checkbox. |
java.lang.String |
getXType()
Gets the xtype for this component as registered with ComponentMgr. |
void |
setBoxLabel(java.lang.String boxLabel)
The text that appears beside the checkbox. |
void |
setChecked(boolean checked)
True if the the checkbox should render already checked (defaults to false). |
void |
setInputValue(java.lang.String inputValue)
The value that should go into the generated input element's value attribute. |
void |
setValue(boolean checked)
Sets the checked state of the checkbox. |
| Methods inherited from class com.gwtext.client.widgets.form.Field |
|---|
addListener, applyTo, applyTo, clearInvalid, getClearCls, getCls, getFieldLabel, getFocusClass, getInputType, getInvalidClass, getInvalidText, getLabelSeparator, getLabelStyle, getName, getRawValue, getTabindex, getValidationDelay, getValueAsString, hide, isAutoCreate, isDirty, isHideLabel, isReadOnly, isValid, isValid, isValidateOnBlur, markInvalid, reset, setAutoCreate, setAutoCreate, setClearCls, setCls, setDisabled, setFieldClass, setFieldLabel, setFieldMsgTarget, setFocusClass, setHideLabel, setInputType, setInvalidClass, setInvalidText, setLabel, setLabelSeparator, setLabelStyle, setMsgFx, setMsgTarget, setName, setRawValue, setReadOnly, setTabIndex, setValidateOnBlur, setValidationDelay, setValidationEvent, setValidationEvent, setValue, show, validate |
| Methods inherited from class com.gwtext.client.widgets.BoxComponent |
|---|
addListener, doOnRender, doOnRender, getAutoHeight, getAutoWidth, getBox, getBox, getHeight, getPosition, getPosition, getSize, getWidth, setAutoHeight, setAutoWidth, setHeight, setHeight, setPagePosition, setPosition, setSize, setSize, setWidth, setWidth, syncSize, updateBox |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, setElement, setPixelSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Checkbox(com.google.gwt.core.client.JavaScriptObject jsObj)
public Checkbox()
public Checkbox(java.lang.String boxLabel)
boxLabel - the box label
public Checkbox(java.lang.String boxLabel,
java.lang.String name)
boxLabel - the box labelname - the field name
public Checkbox(java.lang.String boxLabel,
CheckboxListener listener)
boxLabel - the box labellistener - the checkbox listener| Method Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
getConfigPrototype in class BoxComponentpublic java.lang.String getXType()
Component
TextField field = new TextField();
field.getXType() returns "textfield"
getXType in class Fieldprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
create in class Fieldpublic boolean getValue()
public void setValue(boolean checked)
checked - true to chec the checkbox, false to uncheck itpublic void addListener(CheckboxListener listener)
listener - the listenerpublic void setBoxLabel(java.lang.String boxLabel)
boxLabel - the box labelpublic java.lang.String getBoxLabel()
public void setChecked(boolean checked)
checked - true to render checked
public void setInputValue(java.lang.String inputValue)
throws java.lang.IllegalStateException
inputValue - fields input value
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||