Class TableLayout

Description

The

  1. TableLayout
renders components sequentially in rows that contain the specifed number of columns. They are a replacement for HTML tables in that they allow the same effect while rendering their component elements.

Layouts are assigned to Containers and they specify how (in terms of location, not appearance) the sub-

  1. Components
are going to be rendered on the screen.

  • version: $Id: TableLayout.class.php,v 1.5 2007/09/04 20:25:22 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College

Located in /harmoni/core/GUIManager/Layouts/TableLayout.class.php (line 24)

LayoutInterface
   |
   --TableLayout
Method Summary
TableLayout TableLayout (integer $numberOfColumns, [mixed $tdStyles = null])
string getCSS ([string $tabs = ""])
void render (ref $container, ref $theme, [string $tabs = ""])
void setRenderDirection (string $direction)
void setTdStyles (string $tdStyles)
array _getCellOrder (int $numComponents)
Methods
Constructor TableLayout (line 34)

The constructor.

  • access: public
TableLayout TableLayout (integer $numberOfColumns, [mixed $tdStyles = null])
  • integer $numberOfColumns
getCSS (line 186)

Returns any CSS code that might be needed in order for this

  1. Layout
to render properly.

  • return: The CSS code that might be needed in order for this
    1. Layout
    to render properly.
  • access: public
string getCSS ([string $tabs = ""])
  • string $tabs: tabs This is a string (normally a bunch of tabs) that will be prepended to each text line. This argument is optional but its usage is highly recommended in order to produce a nicely formatted HTML output.

Redefinition of:
LayoutInterface::getCSS()
Returns any CSS code that might be needed in order for this
  1. Layout
to render properly.
render (line 98)

Lays out and renders the given container and its components. The Layout object should arrange the

  1. Components
in a well-defined manner and then call the
  1. render()
methods of each individual component.

  • access: public
void render (ref $container, ref $theme, [string $tabs = ""])
  • ref $container: object The container to render.
  • ref $theme: object theme The Theme object to use in producing the result of this method.
  • string $tabs: tabs This is a string (normally a bunch of tabs) that will be prepended to each text line. This argument is optional but its usage is highly recommended in order to produce a nicely formatted HTML output.

Redefinition of:
LayoutInterface::render()
Lays out and renders the given container and its components. The Layout object should arrange the
  1. Components
in a well-defined manner and then call the
  1. render()
methods of each individual component.
setRenderDirection (line 76)

Set the direction of component rendering from the default of Left-Right/Top-Bottom.

Allowed values: Left-Right/Top-Bottom Top-Bottom/Left-Right Right-Left/Top-Bottom Top-Bottom/Right-Left

The other possible directions, listed below, are not implemented due to lack of utility: Left-Right/Bottom-Top Bottom-Top/Left-Right Right-Left/Bottom-Top Bottom-Top/Right-Left

  • since: 8/18/06
  • access: public
void setRenderDirection (string $direction)
  • string $direction
setTdStyles (line 52)

Set the tdStyles

  • since: 9/18/06
  • access: public
void setTdStyles (string $tdStyles)
  • string $tdStyles
_getCellOrder (line 198)

Return an array mapping the order of the cells .

  • since: 8/18/06
  • access: public
array _getCellOrder (int $numComponents)
  • int $numComponents

Inherited Methods

Inherited From LayoutInterface

LayoutInterface::getCSS()
LayoutInterface::render()

Documentation generated on Wed, 19 Sep 2007 10:27:04 -0400 by phpDocumentor 1.3.0RC3