Class P4A_Button

Description

HTML "button".

It's useful to trigger actions in easy way (with/without graphics).

Located in /p4a/objects/widgets/button.php (line 46)

P4A_Object
   |
   --P4A_Widget
      |
      --P4A_Button
Variable Summary
 string $_icon
 mixed $_size
Method Summary
 P4A_Button P4A_Button (string $name, [string $icon = NULL])
 string getAsString ()
 string getIcon ()
 void getSize ()
 void setIcon (string $icon)
 void setLabel (string $value)
 void setSize ( $size)
 void setValue (string $value)
Variables
Methods
Constructor P4A_Button (line 62)

Class constructor.

  • access: private
P4A_Button P4A_Button (string $name, [string $icon = NULL])
  • string $name: Mnemonic identifier for the object.
  • string $icon: The icon taken from icon set (file name without extension).
composeStringProperties (line 222)

Composes a string containing all the HTML properties of the widget.

Note: it will also contain the name and the value.

  • access: public
string composeStringProperties ()

Redefinition of:
P4A_Widget::composeStringProperties()
Composes a string containing all the HTML properties of the widget.
getAsString (line 132)

Retuns the HTML rendered button.

  • access: public
string getAsString ()

Redefinition of:
P4A_Widget::getAsString()
Returns the HTML rendered widget.
getIcon (line 112)

Returns the icon for the button.

  • access: public
string getIcon ()
getSize (line 122)
void getSize ()
setIcon (line 102)

Sets the icon for the button.

  • access: public
void setIcon (string $icon)
  • string $icon: The icon taken from icon set (file name without extension).
setLabel (line 79)

Sets the label for the button.

It'a a wrapper for set_value().

  • access: public
void setLabel (string $value)
  • string $value: The value

Redefinition of:
P4A_Widget::setLabel()
Sets the label for the widget.
setSize (line 117)
void setSize ( $size)
  • $size
setValue (line 91)

Sets the value for the button.

Also sets the right HTML property for correct display.

  • access: public
void setValue (string $value)
  • string $value: The value

Redefinition of:
P4A_Widget::setValue()
Sets the value of the widget.

Inherited Methods

Inherited From P4A_Widget

 P4A_Widget::addAction()
 P4A_Widget::addAjaxAction()
 P4A_Widget::addTempVar()
 P4A_Widget::changeEvent()
 P4A_Widget::clearTemplateVars()
 P4A_Widget::clearTempVars()
 P4A_Widget::composeStringActions()
 P4A_Widget::composeStringClassStyle()
 P4A_Widget::composeStringProperties()
 P4A_Widget::composeStringStyle()
 P4A_Widget::disable()
 P4A_Widget::display()
 P4A_Widget::dropAction()
 P4A_Widget::dropTempVar()
 P4A_Widget::enable()
 P4A_Widget::fetchTemplate()
 P4A_Widget::getAccessKey()
 P4A_Widget::getAsString()
 P4A_Widget::getHeight()
 P4A_Widget::getLabel()
 P4A_Widget::getProperty()
 P4A_Widget::getStyleProperty()
 P4A_Widget::getValue()
 P4A_Widget::getWidth()
 P4A_Widget::isEnabled()
 P4A_Widget::isVisible()
 P4A_Widget::onBlur()
 P4A_Widget::onChange()
 P4A_Widget::onClick()
 P4A_Widget::onDblClick()
 P4A_Widget::onFocus()
 P4A_Widget::onKeyDown()
 P4A_Widget::onKeyPress()
 P4A_Widget::onKeyUp()
 P4A_Widget::onMouseDown()
 P4A_Widget::onMouseMove()
 P4A_Widget::onMouseOver()
 P4A_Widget::onMouseUp()
 P4A_Widget::onReturnPress()
 P4A_Widget::onSelect()
 P4A_Widget::p4a_widget()
 P4A_Widget::raise()
 P4A_Widget::redesign()
 P4A_Widget::requireConfirmation()
 P4A_Widget::setAccessKey()
 P4A_Widget::setBgcolor()
 P4A_Widget::setBgimage()
 P4A_Widget::setDefaultLabel()
 P4A_Widget::setFontColor()
 P4A_Widget::setFontWeight()
 P4A_Widget::setHeight()
 P4A_Widget::setInvisible()
 P4A_Widget::setLabel()
 P4A_Widget::setProperty()
 P4A_Widget::setStyleProperty()
 P4A_Widget::setValue()
 P4A_Widget::setVisible()
 P4A_Widget::setWidth()
 P4A_Widget::unrequireConfirmation()
 P4A_Widget::unsetProperty()
 P4A_Widget::unsetStyleProperty()
 P4A_Widget::useTemplate()

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:13 +0100 by phpDocumentor 1.4.0