P4A_WidgetBase 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 |
|---|---|
P4A_Frame
|
The frame widget A frame is a panel where we anchor widgets. |
P4A_Link
|
"A" HTML tag. |
P4A_DB_Navigator
|
This widget allows a tree navigation within a P4A_DB_Source. |
P4A_Toolbar
|
A toolbar is a buttons/images set. |
P4A_Menu
|
p4a menu system. |
P4A_Menu_Item
|
Rapresents every menu item. |
P4A_Sheet
|
Sheets is the way to manage layouts in MerliWork masks. |
P4A_Sheet_Cell
|
The basic element of sheets: SHEET CELL. |
P4A_Tab_Pane
|
The tab pane widget A tab pane is a set of pages. |
P4A_Canvas
|
The canvas widget A cancas is a panel where we anchor widgets. |
P4A_Button
|
HTML "button". |
P4A_Label
|
The label is associated to an input field, do not use it otherwise. |
P4A_Image
|
Use this whan you want to put an image in your application. |
P4A_Field
|
A fields is a GUI element that shows its value, and this value can be changed. |
P4A_Message
|
P4A - PHP For Applications. |
P4A_Href
|
"HREF" part on a "A" tag. |
P4A_Line
|
Line |
P4A_Table
|
Tabular rapresentation of a data source. |
P4A_Table_Col
|
Keeps the data for a single table column. |
P4A_Table_Rows
|
Keeps all the data for all the rows. |
P4A_Icon
|
The icon widget |
P4A_Box
|
The box: renders raw HTML. |
void
addAction
(string $action, [string $event = null], [boolean $require_confirmation = false], [string $confirmation_text = null], [string $confirmation_text_handler = 'confirm_general'], [boolean $ajax = false])
void
addAjaxAction
(string $action, [string $event = null], [boolean $require_confirmation = false], [string $confirmation_text = null], [string $confirmation_text_handler = 'confirm_general'])
void
requireConfirmation
(string $action, [string $confirmation_text = null], [string $confirmation_text_handler = 'confirm_general'])
array
$actions
= array() (line 83)
Keeps all the actions implemented by the widget.
boolean
$enabled
= TRUE (line 62)
Object's enabled status. If the widget is visible but not enable it won't be clickable.
mixed
$label
= NULL (line 91)
Keeps the label associated with the widget.
The label will be displayed on the left of the widget.
array
$map_actions
= array() (line 76)
Keeps the association between an action and its listener.
array
$properties
= array() (line 98)
Keeps all the HTML properties for the widget.
array
$style
= array() (line 105)
Keeps all the CSS properties for the widget.
string
$template_name
= NULL (line 121)
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.
boolean
$use_template
= false (line 112)
Defines if we are going to use a template for the widget.
string
$value
= NULL (line 55)
Object's value. Used for widget with data binding.
boolean
$visible
= TRUE (line 69)
Defines object visibility.
array
$_temp_vars
= array() (line 135)
Temporary variables (destroyed after rendering)
array
$_tpl_vars
= array() (line 128)
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
addAction (line 485)
Adds an action to the implemented actions stack for the widget.
addAjaxAction (line 513)
Adds an ajax action to the implemented actions stack for the widget.
addTempVar (line 944)
Add a temporary variable
changeEvent (line 553)
Changes the event associated to an action.
If no event is given, here we set event=action.
clearTemplateVars (line 743)
Empties the template engine variables' stack.
clearTempVars (line 965)
Clear temporary vars list
composeStringActions (line 604)
Composes a string containing all the actions implemented by the widget.
Note: it will also contain the name and the value.
composeStringClassStyle (line 692)
Composes a string contaning the CSS class property for the widget.
composeStringProperties (line 586)
Composes a string containing all the HTML properties of the widget.
Note: it will also contain the name and the value.
composeStringStyle (line 674)
Composes a string containing the CSS properties for the widget.
disable (line 188)
Sets the widget disabled.
display (line 723)
Adds this variable (name and value) to the template engine variables' stack.
dropAction (line 574)
Removes an action from the implemented actions stack for the widget.
dropTempVar (line 954)
Drop a temporary variable
enable (line 178)
Sets the widget enabled.
fetchTemplate (line 753)
Returns the HTML rendered template.
getAccessKey (line 345)
getAsString (line 796)
Returns the HTML rendered widget.
This method MUST be overridden by every widget that extends P4A_this class.
getHeight (line 422)
Returns the height for the widget.
It's a wrapper for get_style_property().
getLabel (line 278)
Returns the label for the widget.
getProperty (line 310)
Returns the value of a property.
getStyleProperty (line 355)
Returns the value of a CSS property.
getValue (line 167)
Retuns the value of the widget.
getWidth (line 391)
Returns the width for the widget.
It's a wrapper for get_style_property().
isEnabled (line 198)
Returns true if the widget is enabled.
isVisible (line 227)
Returns true if the widget is visible.
onBlur (line 815)
Wrapper used to add the handling of OnBlur action.
onChange (line 833)
Wrapper used to add the handling of OnChange action.
onClick (line 824)
Wrapper used to add the handling of OnClick action.
onDblClick (line 842)
Wrapper used to add the handling of onDblClick action.
onFocus (line 851)
Wrapper used to add the handling of onFocus action.
onKeyDown (line 914)
Wrapper used to add the handling of OnKeyDown action.
onKeyPress (line 896)
Wrapper used to add the handling of OnKeyPress action.
onKeyUp (line 905)
Wrapper used to add the handling of OnKeyUp action.
onMouseDown (line 860)
Wrapper used to add the handling of onMouseDown action.
onMouseMove (line 869)
Wrapper used to add the handling of onMouseMove action.
onMouseOver (line 878)
Wrapper used to add the handling of onMouseOver action.
onMouseUp (line 887)
Wrapper used to add the handling of onMouseUp action.
onReturnPress (line 925)
Wrapper used to add the handling of onReturnPress action.
The onReturnPress action is an onKeyPress with checking if the pressed key is return.
onSelect (line 934)
Wrapper used to add the handling of onSelect action.
p4a_widget (line 145)
Class constructor.
Sets default properties and store the object in the application object stack.
raise (line 806)
Prints the value returned by get_as_string().
It Should never be used by "normal" p4a users.
redesign (line 970)
requireConfirmation (line 526)
Requires confirmation for an action.
setAccessKey (line 341)
setBgcolor (line 434)
Sets the background color for the widget.
It's a wrapper for set_style_property().
setBgimage (line 446)
Sets the background image for the widget.
It's a wrapper for set_style_property().
setDefaultLabel (line 261)
Create from name a default label for the widget In rendering phase it will be added with ': '.
setFontColor (line 470)
Sets the font color for the widget It's a wrapper for set_style_property().
setFontWeight (line 458)
Sets the font weight for the widget It's a wrapper for set_style_property().
setHeight (line 404)
Sets the height for the widget.
It's a wrapper for set_style_property().
setInvisible (line 217)
Sets the widget invisible.
setLabel (line 239)
Sets the label for the widget.
In rendering phase it will be added with ': '.
setProperty (line 289)
Sets an HTML property for the widget.
setStyleProperty (line 326)
Sets a CSS property for the widget.
setValue (line 156)
Sets the value of the widget.
setVisible (line 208)
Sets the widget visible.
setWidth (line 372)
Sets the width for the widget.
It's a wrapper for set_style_property().
unrequireConfirmation (line 539)
Removes confirmation for an action.
unsetProperty (line 299)
Unsets an HTML property for the widget.
unsetStyleProperty (line 336)
Unset a CSS property for the widget.
useTemplate (line 707)
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