Class FlowLayout

Description

  1. FlowLayout
is the most simple
  1. Layout
; it renders a container by simply rendering all of the container's components. The width, height, and alignment options of the container and its components are ignored. No special arranging is done, and it is up to the browser or user to display the components properly.



Contrary to what one might think, this could be a very useful

  1. Layout
. For eaxmple, it could be used to display components that are just
  1. div
elements with aboslute positioning.

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: FlowLayout.class.php,v 1.7 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/FlowLayout.class.php (line 25)

LayoutInterface
   |
   --FlowLayout
Method Summary
FlowLayout FlowLayout ()
string getCSS ([string $tabs = ""])
void render (ref $container, ref $theme, [string $tabs = ""])
Methods
Constructor FlowLayout (line 31)

The constructor.

  • access: public
FlowLayout FlowLayout ()
getCSS (line 65)

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 46)

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.

Inherited Methods

Inherited From LayoutInterface

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

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