ZMObject
|
+--ZMWidget
public abstract class ZMWidget
extends ZMObject
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMWidget() Create new instance. |
|
| Method Summary | |
|---|---|
| string | Get the description. |
| string | getTitle() Get the title. |
| boolean | Check if this widget is enabled. |
| abstract string | render() Get the HTML to render this widget. |
| void | setDescription(string description) Set the description. |
| void | setEnabled(boolean enabled) Controls whether this widget is enabled or not. |
| void | setTitle(string title) Set the title. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMWidget()
Create new instance. /
public string getDescription()
Get the description.
public string getTitle()
Get the title.
public boolean isEnabled()
Check if this widget is enabled.
public abstract string render()
Get the HTML to render this widget.
public void setDescription(string description)
Set the description.
public void setEnabled(boolean enabled)
Controls whether this widget is enabled or not.
public void setTitle(string title)
Set the title.
Widget base class.
Widgets are simple UI element container. They have some basic meta data (title, description) and can either be enabled or disabled.
Depending on the nature of the widgets, subclasses might implement custom properties as needed.
Since widgets are used in the context of an HTML page, the
render()method is expected to return valid HTML that will display the widget.