Base class for objects that permit user interation with the application.
Every P4A objects thats can be rendered should use WIDGET as base class. This class have all the basic methods to build complex widgets that must be P4A compatible.
Located in /p4a/objects/widget.php (line 48)
P4A_Object | --P4A_Widget
Class | Description |
---|---|
![]() |
The frame widget A frame is a panel where we anchor widgets. |
![]() |
"A" HTML tag. |
![]() |
This widget allows a tree navigation within a P4A_DB_Source. |
![]() |
A toolbar is a buttons/images set. |
![]() |
p4a menu system. |
![]() |
Rapresents every menu item. |
![]() |
Sheets is the way to manage layouts in MerliWork masks. |
![]() |
The basic element of sheets: SHEET CELL. |
![]() |
The tab pane widget A tab pane is a set of pages. |
![]() |
The canvas widget A cancas is a panel where we anchor widgets. |
![]() |
HTML "button". |
![]() |
The label is associated to an input field, do not use it otherwise. |
![]() |
Use this whan you want to put an image in your application. |
![]() |
A fields is a GUI element that shows its value, and this value can be changed. |
![]() |
P4A - PHP For Applications. |
![]() |
"HREF" part on a "A" tag. |
![]() |
Line |
![]() |
Tabular rapresentation of a data source. |
![]() |
Keeps the data for a single table column. |
![]() |
Keeps all the data for all the rows. |
![]() |
The icon widget |
![]() |
The box: renders raw HTML. |
Keeps all the actions implemented by the widget.
Object's enabled status. If the widget is visible but not enable it won't be clickable.
Keeps the label associated with the widget.
The label will be displayed on the left of the widget.
Keeps the association between an action and its listener.
Keeps all the HTML properties for the widget.
Keeps all the CSS properties for the widget.
Defines the name of the widget.
if you set it to 'menu' P4A will search for "menu/menu.tpl" in the "themes/CURRENT_THEME/widgets/" directory.
Defines if we are going to use a template for the widget.
Object's value. Used for widget with data binding.
Defines object visibility.
Temporary variables (destroyed after rendering)
variables used for templates
Inherited from P4A_Object
P4A_Object::$_helpers
P4A_Object::$_id
P4A_Object::$_map_actions
P4A_Object::$_name
P4A_Object::$_objects
P4A_Object::$_parent_id
Adds an action to the implemented actions stack for the widget.
Adds an ajax action to the implemented actions stack for the widget.
Add a temporary variable
Changes the event associated to an action.
If no event is given, here we set event=action.
Empties the template engine variables' stack.
Clear temporary vars list
Composes a string containing all the actions implemented by the widget.
Note: it will also contain the name and the value.
Composes a string contaning the CSS class property for the widget.
Composes a string containing all the HTML properties of the widget.
Note: it will also contain the name and the value.
Composes a string containing the CSS properties for the widget.
Sets the widget disabled.
Adds this variable (name and value) to the template engine variables' stack.
Removes an action from the implemented actions stack for the widget.
Drop a temporary variable
Sets the widget enabled.
Returns the HTML rendered template.
Returns the HTML rendered widget.
This method MUST be overridden by every widget that extends P4A_this class.
Returns the height for the widget.
It's a wrapper for get_style_property().
Returns the label for the widget.
Returns the value of a property.
Returns the value of a CSS property.
Retuns the value of the widget.
Returns the width for the widget.
It's a wrapper for get_style_property().
Returns true if the widget is enabled.
Returns true if the widget is visible.
Wrapper used to add the handling of OnBlur action.
Wrapper used to add the handling of OnChange action.
Wrapper used to add the handling of OnClick action.
Wrapper used to add the handling of onDblClick action.
Wrapper used to add the handling of onFocus action.
Wrapper used to add the handling of OnKeyDown action.
Wrapper used to add the handling of OnKeyPress action.
Wrapper used to add the handling of OnKeyUp action.
Wrapper used to add the handling of onMouseDown action.
Wrapper used to add the handling of onMouseMove action.
Wrapper used to add the handling of onMouseOver action.
Wrapper used to add the handling of onMouseUp action.
Wrapper used to add the handling of onReturnPress action.
The onReturnPress action is an onKeyPress with checking if the pressed key is return.
Wrapper used to add the handling of onSelect action.
Class constructor.
Sets default properties and store the object in the application object stack.
Prints the value returned by get_as_string().
It Should never be used by "normal" p4a users.
Requires confirmation for an action.
Sets the background color for the widget.
It's a wrapper for set_style_property().
Sets the background image for the widget.
It's a wrapper for set_style_property().
Create from name a default label for the widget In rendering phase it will be added with ': '.
Sets the font color for the widget It's a wrapper for set_style_property().
Sets the font weight for the widget It's a wrapper for set_style_property().
Sets the height for the widget.
It's a wrapper for set_style_property().
Sets the widget invisible.
Sets the label for the widget.
In rendering phase it will be added with ': '.
Sets an HTML property for the widget.
Sets a CSS property for the widget.
Sets the value of the widget.
Sets the widget visible.
Sets the width for the widget.
It's a wrapper for set_style_property().
Removes confirmation for an action.
Unsets an HTML property for the widget.
Unset a CSS property for the widget.
Defines the template used by the widget.
Inherited From P4A_Object
P4A_Object::actionHandler()
P4A_Object::build()
P4A_Object::destroy()
P4A_Object::dropIntercept()
P4A_Object::errorHandler()
P4A_Object::getId()
P4A_Object::getName()
P4A_Object::getObjectType()
P4A_Object::getParentID()
P4A_Object::implementMethod()
P4A_Object::intercept()
P4A_Object::isActionTriggered()
P4A_Object::p4a_object()
P4A_Object::setName()
P4A_Object::setParentID()
P4A_Object::void()
P4A_Object::_loadHelper()
P4A_Object::__call()
Documentation generated on Mon, 07 Jan 2008 11:29:38 +0100 by phpDocumentor 1.4.0