ZMObject
└─ZMWidget
└─ZMFormWidget
public abstract class ZMFormWidget
extends ZMWidget
| Method Summary | |
|---|---|
| void | Create new instance. |
| boolean | compare(string value) Compare the given value with the widget value. |
| array | Get the list of supported attributes. |
| string | getAttributeString(ZMRequest request, boolean addValue, boolean addName) Get the formatted attribute string. |
| string | getName() Get the name. |
| string | Get a stringified version of the value suitable for storing. |
| mixed | getValue() Get the value. |
| boolean | isEncode() Indicate whether value and attributes will be encoded or not. |
| boolean | Check if this widget allows multiple values. |
| void | setAttributeNames(array names) Set the list of supported attributes. |
| void | setEncode(boolean value) Enable/disable encoding of value and attributes. |
| void | setName(string name) Set the name. |
| void | setValue(mixed value) Set the value. |
| 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.public array getAttributeNames()
Get the list of supported attributes.
public string getAttributeString(ZMRequest request, boolean addValue, boolean addName)
Get the formatted attribute string.
true.true.public string getName()
Get the name.
public string getStringValue()
Get a stringified version of the value suitable for storing.
public mixed getValue()
Get the value.
public boolean isEncode()
Indicate whether value and attributes will be encoded or not.
true if encoding will be done.public boolean isMultiValue()
Check if this widget allows multiple values.
true if multiple values are supported.public void setAttributeNames(array names)
Set the list of supported attributes.
public void setEncode(boolean value)
Enable/disable encoding of value and attributes.
public void setName(string name)
Set the name.
public void setValue(mixed value)
Set the value.
Form widget base class.
Form widgets are widgets that represent various HTML form input elements.