ZMObject
└─ZMWidget
└─ZMFormWidget
└─ZMBooleanFormWidget
public class ZMBooleanFormWidget
extends ZMFormWidget
| Method Summary | |
|---|---|
| void | Create new instance. |
| 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. |
| string | {@inheritDoc} |
| protected The | renderCheckbox(ZMRequest request) Render as checkbox. |
| protected The | renderRadio(ZMRequest request) Render as radiobox group. |
| protected The | renderSelect(ZMRequest request) Render as select box. |
| Methods inherited from org.zenmagick.mvc.widgets.form\ZMFormWidget | |
|---|---|
| __construct, compare, getAttributeNames, getAttributeString, getName, getStringValue, getValue, isEncode, isMultiValue, setAttributeNames, setEncode, setName, setValue | |
| Methods inherited from org.zenmagick.mvc.widgets\ZMWidget | |
|---|---|
| __construct, getDescription, getTitle, isEnabled, render, setDescription, setEnabled, setTitle | |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct()
Create new instance.
public boolean compare(string value)
Compare the given value with the widget 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 string render(ZMRequest request)
protected The renderCheckbox(ZMRequest request)
Render as checkbox.
protected The renderRadio(ZMRequest request)
Render as radiobox group.
protected The renderSelect(ZMRequest request)
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.