java.lang.Object | ||||
↳ | com.google.gwt.user.client.ui.UIObject | |||
↳ | com.google.gwt.user.client.ui.Widget | |||
↳ | com.google.gwt.user.client.ui.FocusWidget | |||
↳ | com.google.gwt.user.client.ui.SimpleCheckBox |
Known Direct Subclasses |
A simple checkbox widget, with no label.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new simple checkbox.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor may be used by subclasses to explicitly use an existing
element.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the Editor encapsulated by the view object.
| |||||||||||
Returns the value property of the input element that backs this widget.
| |||||||||||
Gets the widget's name.
| |||||||||||
Determines whether this check box is currently checked.
| |||||||||||
This method is deprecated.
Use
getValue() instead
| |||||||||||
This method is deprecated.
Use
setValue(Boolean) instead
| |||||||||||
Sets whether this widget is enabled.
| |||||||||||
Set the value property on the input element that backs this widget.
| |||||||||||
Sets the widget's name.
| |||||||||||
Checks or unchecks the check box.
| |||||||||||
Creates a SimpleCheckBox widget that wraps an existing <input
type='checkbox'> element.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is called when a widget is detached from the browser's
document.
|
Creates a new simple checkbox.
This constructor may be used by subclasses to explicitly use an existing element. This element must be an <input> element whose type is either 'checkbox'.
element | the element to be used |
---|
Returns the Editor encapsulated by the view object.
Editor
of type E
Returns the value property of the input element that backs this widget.
This is the value that will be associated with the check box name and
submitted to the server if a FormPanel
that holds it is submitted
and the box is checked.
Don't confuse this with getValue()
, which returns true or false if
the widget is checked.
Determines whether this check box is currently checked.
Note that this does not return the value property of the checkbox
input element wrapped by this widget. For access to that property, see
getFormValue()
true
if the check box is checked, false otherwise.
Will not return null
This method is deprecated.
Use getValue()
instead
Determines whether this check box is currently checked.
true
if the check box is checked
This method is deprecated.
Use setValue(Boolean)
instead
Checks or unchecks this check box.
checked | true to check the check box |
---|
Sets whether this widget is enabled.
enabled | true to enable the widget, false
to disable it
|
---|
Set the value property on the input element that backs this widget. This is
the value that will be associated with the check box's name and submitted
to the server if a FormPanel
that holds it is submitted and the box
is checked.
Don't confuse this with setValue(V)
, which actually checks and
unchecks the box.
Checks or unchecks the check box.
Note that this does not set the value property of the checkbox
input element wrapped by this widget. For access to that property, see
setFormValue(String)
value | true to check, false to uncheck; null value implies false |
---|
Creates a SimpleCheckBox widget that wraps an existing <input
type='checkbox'> element.
This element must already be attached to the document. If the element is
removed from the document, you must call
detachNow(Widget)
.
element | the element to be wrapped |
---|
This method is called when a widget is detached from the browser's document. Overridden because of IE bug that throws away checked state.