ZMObject
|
+--ZMWidget
|
+--ZMFormWidget
|
+--ZMBooleanFormWidget
public class ZMBooleanFormWidget
extends ZMFormWidget
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| boolean | compare(string value) {@inheritDoc} / |
| protected string | getCheckboxHiddenValueName(string name) Build the hidden value element name used for checkbox rendering. |
| boolean | getValue() Overload to evaluate as boolean. |
| The | handleFormData(array data) {@inheritDoc} / |
| string | render() {@inheritDoc} / |
| protected The | Render as checkbox. |
| protected The | Render as radiobox group. |
| protected The | Render as select box. |
| Methods inherited from org.zenmagick.widgets.form.ZMFormWidget | |
|---|---|
| compare, getName, getValue, handleFormData, setName, setValue | |
| Methods inherited from org.zenmagick.widgets.ZMWidget | |
|---|---|
| getDescription, getTitle, isEnabled, render, setDescription, setEnabled, setTitle | |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMBooleanFormWidget()
Create new instance. /
public boolean compare(string value)
/
true if the given value evaluates to the
* same value as the widget value.protected string getCheckboxHiddenValueName(string name)
Build the hidden value element name used for checkbox rendering.
public boolean getValue()
Overload to evaluate as boolean.
public The handleFormData(array data)
/
public string render()
/
protected The renderCheckbox()
Render as checkbox.
protected The renderRadio()
Render as radiobox group.
protected The renderSelect()
Render as select box.
A widget to make a boolean selection (true/false).
Style can be: radio, select or checkbox. Default is radio.
If style is checkbox, the custom property
labelmight be set to override the use of the title as label text.Radiobox and select label for
trueandfalsemay be set via label_true and label_false, respectively.