Class we_ui_layout_Table

Description

Table Class to layout elements. It renders a normal HTML table

Located in /ui/layout/Table.php (line 30)

we_core_AbstractObject
   |
   --we_ui_abstract_AbstractElement
      |
      --we_ui_layout_Table
Direct descendents
Class Description
we_ui_layout_ButtonTable Class to display a ButtonTable
Variable Summary
integer $_border
array $_cellHTML
integer $_cellPadding
integer $_cellSpacing
integer $_column
integer $_row
Method Summary
void addElement (we_ui_abstract_AbstractElement $elem, [integer $column = -1], [integer $row = -1])
void addHTML (string $html, [integer $column = -1], [integer $row = -1])
integer getBorder ()
integer getCellPadding ()
integer getCellSpacing ()
integer getColumn ()
integer getRow ()
void nextColumn ()
void nextRow ([boolean $resetColumn = false])
void resetColumn ()
void resetRow ()
void setBorder (integer $border)
void setCellAttributes (array $attributes, [integer $column = -1], [integer $row = -1])
void setCellPadding (integer $cellPadding)
void setCellSpacing (integer $cellSpacing)
void setColumn ($column $column)
void setRow ($row $row)
string _renderHTML ()
Variables
integer $_border = 0 (line 52)

border attribute of the table

  • access: protected
array $_cellAttributes = array() (line 45)

Two dimensional array to hold the attributes for the cells

  • access: protected
array $_cellHTML = array() (line 38)

Two dimensional array to hold the HTML for the cells

  • access: protected
integer $_cellPadding = 0 (line 59)

cellpadding attribute of the table

  • access: protected
integer $_cellSpacing = 0 (line 66)

cellspacing attribute of the table

  • access: protected
integer $_column = 0 (line 80)

Pointer to the current column

  • access: protected
integer $_row = 0 (line 73)

Pointer to the current row

  • access: protected

Inherited Variables

Inherited from we_ui_abstract_AbstractElement

we_ui_abstract_AbstractElement::$_class
we_ui_abstract_AbstractElement::$_CSSFiles
we_ui_abstract_AbstractElement::$_disabled
we_ui_abstract_AbstractElement::$_height
we_ui_abstract_AbstractElement::$_hidden
we_ui_abstract_AbstractElement::$_id
we_ui_abstract_AbstractElement::$_JSFiles
we_ui_abstract_AbstractElement::$_lang
we_ui_abstract_AbstractElement::$_left
we_ui_abstract_AbstractElement::$_overflow
we_ui_abstract_AbstractElement::$_position
we_ui_abstract_AbstractElement::$_style
we_ui_abstract_AbstractElement::$_title
we_ui_abstract_AbstractElement::$_top
we_ui_abstract_AbstractElement::$_width
Methods
addElement (line 93)

Adds an Element to the current cell, which is defined by the row and column pointer.

If the $column or $row parameter is set, the column pointers will be updated before inserting the element

  • access: public
void addElement (we_ui_abstract_AbstractElement $elem, [integer $column = -1], [integer $row = -1])
addHTML (line 130)

Adds HTML to the current cell, which is defined by the row and column pointer.

If the $column or $row parameter is set, the column pointers will be updated before inserting the HTML

  • access: public
void addHTML (string $html, [integer $column = -1], [integer $row = -1])
  • string $html: element to insert
  • integer $column
  • integer $row
getBorder (line 327)

Retrieve border attribute

  • access: public
integer getBorder ()
getCellPadding (line 337)

Retrieve cellpadding attribute

  • access: public
integer getCellPadding ()
getCellSpacing (line 347)

Retrieve cellspacing attribute

  • access: public
integer getCellSpacing ()
getColumn (line 234)

Retrieve the column pointer

  • access: public
integer getColumn ()
getRow (line 244)

Retrieve the row pointer

  • access: public
integer getRow ()
nextColumn (line 204)

Sets the column pointer to the next column

  • access: public
void nextColumn ()
nextRow (line 191)

Sets the row pointer to the next row

  • access: public
void nextRow ([boolean $resetColumn = false])
  • boolean $resetColumn: if set to true the column pointer will be reset to 0
resetColumn (line 224)

Reset the column pointer to 0

  • access: public
void resetColumn ()
resetRow (line 214)

Reset the row pointer to 0

  • access: public
void resetRow ()
setBorder (line 358)

Sets the border attribute

  • access: public
void setBorder (integer $border)
  • integer $border
setCellAttributes (line 163)

Sets the attributes for the current cell, which is defined by the row and column pointer.

If the $column or $row parameter is set, the column pointers will be updated before setting the attributes

  • access: public
void setCellAttributes (array $attributes, [integer $column = -1], [integer $row = -1])
  • array $attributes: associative array with attributes to insert
  • integer $column
  • integer $row
setCellPadding (line 369)

Sets the cellpadding attribute

  • access: public
void setCellPadding (integer $cellPadding)
  • integer $cellPadding
setCellSpacing (line 380)

Sets the cellspaceing attribute

  • access: public
void setCellSpacing (integer $cellSpacing)
  • integer $cellSpacing
setColumn (line 255)

Sets the column pointer

  • access: public
void setColumn ($column $column)
  • $column $column: integer
setRow (line 266)

Sets the row pointer

  • access: public
void setRow ($row $row)
  • $row $row: integer
_renderHTML (line 276)

Renders and returns the HTML

  • access: public
string _renderHTML ()

Redefinition of:
we_ui_abstract_AbstractElement::_renderHTML()
Renders and returns HTML of ui element

Inherited Methods

Inherited From we_ui_abstract_AbstractElement

we_ui_abstract_AbstractElement::addCSSFile()
we_ui_abstract_AbstractElement::addCSSFiles()
we_ui_abstract_AbstractElement::addJSFile()
we_ui_abstract_AbstractElement::addJSFiles()
we_ui_abstract_AbstractElement::computeJSURL()
we_ui_abstract_AbstractElement::getClass()
we_ui_abstract_AbstractElement::getCSSFiles()
we_ui_abstract_AbstractElement::getDisabled()
we_ui_abstract_AbstractElement::getHeight()
we_ui_abstract_AbstractElement::getHidden()
we_ui_abstract_AbstractElement::getHTML()
we_ui_abstract_AbstractElement::getId()
we_ui_abstract_AbstractElement::getJSFiles()
we_ui_abstract_AbstractElement::getJSHTML()
we_ui_abstract_AbstractElement::getLang()
we_ui_abstract_AbstractElement::getLeft()
we_ui_abstract_AbstractElement::getOverflow()
we_ui_abstract_AbstractElement::getPosition()
we_ui_abstract_AbstractElement::getStyle()
we_ui_abstract_AbstractElement::getTitle()
we_ui_abstract_AbstractElement::getTop()
we_ui_abstract_AbstractElement::getWidth()
we_ui_abstract_AbstractElement::setClass()
we_ui_abstract_AbstractElement::setDisabled()
we_ui_abstract_AbstractElement::setHeight()
we_ui_abstract_AbstractElement::setHidden()
we_ui_abstract_AbstractElement::setId()
we_ui_abstract_AbstractElement::setLang()
we_ui_abstract_AbstractElement::setLeft()
we_ui_abstract_AbstractElement::setOverflow()
we_ui_abstract_AbstractElement::setPosition()
we_ui_abstract_AbstractElement::setStyle()
we_ui_abstract_AbstractElement::setTitle()
we_ui_abstract_AbstractElement::setTop()
we_ui_abstract_AbstractElement::setWidth()
we_ui_abstract_AbstractElement::_didRenderHTML()
we_ui_abstract_AbstractElement::_getBooleanAttribs()
we_ui_abstract_AbstractElement::_getComputedClassAttrib()
we_ui_abstract_AbstractElement::_getComputedStyleAttrib()
we_ui_abstract_AbstractElement::_getNonBooleanAttribs()
we_ui_abstract_AbstractElement::_renderHTML()
we_ui_abstract_AbstractElement::_willRenderHTML()

Inherited From we_core_AbstractObject

we_core_AbstractObject::__construct()

Documentation generated on Mon, 01 Sep 2008 11:35:44 +0200 by phpDocumentor 1.4.0