## P4A_Sheet_Cell

Description

The basic element of sheets: SHEET CELL.

Memorized informations about anchored widgetm rowspan and colspan.

- author: Fabrizio Balliano

Located in /p4a/objects/widgets/sheet.php (line 526)

    P4A_Object
       |
       --P4A_Widget
          |
          --P4A_Sheet_Cell

Variable Summary
boolean $occupied
widget $widget
Method Summary
P4A_Sheet_Cell P4A_Sheet_Cell (mixed $name)
void anchor (widget &$widget, [integer $rowspan = 1], [integer $colspan = 1])
string getAsString ()
boolean isFree ()
boolean isOccupied ()
void setFree ()
void setOccupied ()
Variables
boolean $occupied = false (line 533)

Occupational state of the cell.

- access: private

widget $widget = null (line 540)

Reference to the anchored widget.

- access: public

#### Inherited Variables

Inherited from P4A_Widget

> P4A_Widget::$actions
> P4A_Widget::$enabled
> P4A_Widget::$label
> P4A_Widget::$map_actions
> P4A_Widget::$properties
> P4A_Widget::$style
> P4A_Widget::$template_name
> P4A_Widget::$use_template
> P4A_Widget::$value
> P4A_Widget::$visible
> P4A_Widget::$_temp_vars

Inherited from P4A_Object

> P4A_Object::$_id
> P4A_Object::$_map_actions
> P4A_Object::$_name
> P4A_Object::$_objects
> P4A_Object::$_parent_id

Methods
Constructor P4A_Sheet_Cell (line 546)

Class constructor.

Inizialize the cell setting rowspan and colspan.

P4A_Sheet_Cell P4A_Sheet_Cell (mixed $name)
anchor (line 561)

Anchors a widget to the cell.

void anchor (widget &$widget, [integer $rowspan = 1], [integer $colspan = 1])

- widget &$widget: The widget to anchor.
- integer $rowspan: The number of rows to occupy.
- integer $colspan: The numer of columns to occupy.

getAsString (line 576)

Renders the cell in HTML.

The cell is rendered only if visible.

string getAsString ()

Redefinition of:

P4A_Widget::getAsString()
  Returns the HTML rendered widget.

isFree (line 612)

Returns true if the cell is free.

boolean isFree ()
isOccupied (line 603)

Returns true if the cell is occupied.

boolean isOccupied ()
setFree (line 628)

Mark the cell as free.

void setFree ()
setOccupied (line 620)

Mark the cell as occupied.

void setOccupied ()

#### Inherited Methods

Inherited From P4A_Widget

> P4A_Widget::addAction()
> 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::onChange()
> P4A_Widget::onClick()
> P4A_Widget::onKeyPress()
> P4A_Widget::onMouseOver()
> P4A_Widget::onReturnPress()
> P4A_Widget::p4a_widget()
> P4A_Widget::raise()
> 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::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()

Documentation generated on Fri, 26 May 2006 12:43:34 +0200 by phpDocumentor 1.3.0RC5