SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl
└─SwatCheckbox
public class SwatCheckbox
extends SwatInputControl
| Field Summary | |
|---|---|
| string | Access key. |
| boolean | Checkbox value. |
| Fields inherited from Swat.SwatInputControl | |
|---|---|
| required | |
| Constructor Summary | |
|---|---|
SwatCheckbox(string id) Creates a new checkbox. |
|
| Method Summary | |
|---|---|
| void | display() Displays this checkbox. |
| protected array | Gets the array of CSS classes that are applied to this checkbox. |
| string | Gets the id attribute of the XHTML element displayed by this widget that should receive focus. |
| boolean | getState() Gets the current state of this checkbox. |
| void | process() Processes this checkbox. |
| void | setState(boolean state) Sets the current state of this checkbox. |
| Methods inherited from Swat.SwatInputControl | |
|---|---|
| getForm, init | |
| Methods inherited from Swat.SwatControl | |
|---|---|
| addMessage, getNote, printWidgetTree | |
| Methods inherited from Swat.SwatWidget | |
|---|---|
| addCompositeWidget, addMessage, confirmCompositeWidgets, copy, createCompositeWidgets, display, displayHtmlHeadEntries, getCSSClassNames, getCompositeWidget, getCompositeWidgets, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, isDisplayed, isInitialized, isProcessed, isSensitive, printWidgetTree, process, replaceWithContainer | |
| Methods inherited from Swat.SwatUIObject | |
|---|---|
| addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible | |
public string $access_key = null
Access key
Access key for this checkbox input, for keyboard nagivation.
public boolean $value = false
Checkbox value
The state of the widget.
public SwatCheckbox(string id)
Creates a new checkbox
id - a non-visible unique id for this widget.public void display()
Displays this checkbox
Outputs an appropriate XHTML tag.
protected array getCSSClassNames()
Gets the array of CSS classes that are applied to this checkbox
public string getFocusableHtmlId()
Gets the id attribute of the XHTML element displayed by this widget that should receive focus
public boolean getState()
Gets the current state of this checkbox
public void process()
Processes this checkbox
Sets the internal value of this checkbox based on submitted form data.
public void setState(boolean state)
Sets the current state of this checkbox
state - the new state of this checkbox.
A checkbox entry widget