STPHPObject | --STPHPComponent | --STPHPTable
Located in File: Program_Root/stphptable.php
stphplib
Roberto Gerola <roberto.gerola@speedtech.it>
0.8
Class Variable Summary |
$cells
The cells of the table (an array of STPHPTableCell objects) Default Value:
|
$numOfCols
The number of cols of the table Default Value:
|
$numOfRows
The number of rows of the table Default Value:
|
$rows
The rows of the table (an array of STPHPTableRow objects) Default Value:
|
Inherited Class Variable Summary | |||||||||||||||
Inherited From Class STPHPComponent
|
|||||||||||||||
Inherited From Class STPHPObject
|
Inherited Method Summary | ||||||||||||||||||||||||||||||||||||||
Inherited From Class STPHPComponent
|
||||||||||||||||||||||||||||||||||||||
Inherited From Class STPHPObject
|
Method Summary |
STPHPTable constructor STPHPTable ( $name )
Creates the object |
void addComponent ( &$component )
Adds a STPHPTableCell at the end of the components list |
void addComponentToCell ( $row, $col, &$component )
Adds a component directly to a cell |
void addRow ( )
Adds a new row to the table |
void addTextToCell ( $row, $col, $text )
Adds text to the specified cell |
void addVSpaceToCell ( $row, $col, $units )
Adds vertical spaces to the specified cell |
void appendComponent ( &$component )
Appends a STPHPTableRow at the end of the components list |
void appendComponentToCell ( $row, $col, &$component )
Appends a component directly to a cell |
void dtor ( )
Destructor |
void insertComponent ( &$component )
Inserts a STPHPTableRow at the beginning of the components list |
void insertComponentToCell ( $row, $col, &$component )
Inserts a component directly to a cell |
void prepare ( )
Prepare the table creating rows anc cells |
void setNumOfCols ( $cols )
Sets the number of cols |
void setNumOfRows ( $rows )
Sets the number of rows |
string write ( )
Designs the object at runtime |
Variable Detail |
private
private
private
private
Method Detail |
STPHPTable constructor STPHPTable ( $name )
Creates the object- string $name:
public
void addComponent ( &$component )
Overrides: STPHPComponent::addComponent()
Adds a STPHPTableCell at the end of the components list- STPHPTableRow &$component: The component to add
public
void addComponentToCell ( $row, $col, &$component )
Adds a component directly to a cell- integer $row: the rows number
- integer $col: the cols number
- STPHPComponent &$component: the component to add
public
void addRow ( )
Adds a new row to the tablepublic
void addTextToCell ( $row, $col, $text )
Adds text to the specified cell- integer $row: the rows number
- integer $col: the cols number
- string $text: the text to add
public
void addVSpaceToCell ( $row, $col, $units )
Adds vertical spaces to the specified cell- integer $row: the rows number
- integer $col: the cols number
- integer $units: the spaces number
public
void appendComponent ( &$component )
Overrides: STPHPComponent::appendComponent()
Appends a STPHPTableRow at the end of the components list- STPHPTableRow &$component: The component to add
public
void appendComponentToCell ( $row, $col, &$component )
Appends a component directly to a cell- integer $row: the rows number
- integer $col: the cols number
- STPHPComponent &$component: the component to append
public
void dtor ( )
Overridden in child class(es) as: STPHPToolbar::dtor(), STPHPControlWithCaption::dtor()
Overrides: STPHPComponent::dtor()
DestructorDestroys all the resources associated with the object
public
void insertComponent ( &$component )
Overrides: STPHPComponent::insertComponent()
Inserts a STPHPTableRow at the beginning of the components list- STPHPTableRow &$component: the component to add
public
void insertComponentToCell ( $row, $col, &$component )
Inserts a component directly to a cell- integer $row: the rows number
- integer $col: the cols number
- STPHPComponent &$component: the component to insert
public
void prepare ( )
Prepare the table creating rows anc cellspublic
void setNumOfCols ( $cols )
Sets the number of cols- integer $cols: the cols number
public
void setNumOfRows ( $rows )
Sets the number of rows- integer $rows: the rows number
public
string write ( )
Overridden in child class(es) as: STPHPToolbar::write(), STPHPPanel::write(), STPHPTabTitle::write(), STPHPControlWithCaption::write()
Overrides: STPHPComponent::write()
Designs the object at runtimeAvailable attributes : - VISIBLE : defines if the component must be designed or not - BORDER : defines the border size of the table (default 0) - CELLSPACING : defines the spacing of the cells (default 0) - CELLPADING : defines the padding of the cells (default 0) - ALIGN : defines the alignment - WIDTH : defines the width - CLASS : defines the CSS class
the code that represents the object at runtime
private