Class WFTableColumn

Description

The base "view" class. Views are the components that make up a WFPage. Each page has a root view, and then is made up of various subviews in a view hierarchy. There is also a well-defined class hierarchy for WFView that contains all components that are used in creating a web page.

WFView - Views are just generalized components for displaying on screen. NSView is abstract.
  |
  `-WFTabView - A tabbed view containing other pages. (NOT YET IMPLEMENTED)
  `-WFBoxView - A simple box containing content from another page. (NOT YET IMPLEMENTED)
  |
  `-WFWidget - A specialized view for dealing with displaying editale values or actionable controls.
      |                   Also abstract. Adds data get/set methods.
      |                   Add support for editable, error tracking, and formatters.
      `-WFForm - A Form object.
      `-WFTextField - A textfield item.
      `-WFCheckbox - A checkbox item.
      `-WFLabel - For displaying uneditable text, but can use bindings and formatters.
      (etc)

Since we're a web framework, all views eventually know how to render themselves into HTML.

Views have no maintained state. Anything that needs to maintain state should be a WFWidget subclass.

WFView contains the basic infrastructure support the YUI library, which is PHOCOA's Javascript and AJAX layer.

Located in /framework/widgets/WFTableView.php (line 177)

WFObject
   |
   --WFView
      |
      --WFTableColumn
Variable Summary
mixed $dynamics
mixed $label
Method Summary
WFTableColumn __construct ( $id,  $page)
void addChild (WFView $view)
void label ()
void setLabel ( $l)
void table ()
void templateCode ( $rowI)
Variables
mixed $dynamics (line 180)
  • access: protected
mixed $label (line 179)
  • access: protected
mixed $templateCode (line 181)
  • access: protected

Inherited Variables

Inherited from WFView

WFView::$children
WFView::$cssImports
WFView::$enabled
WFView::$id
WFView::$importInHead
WFView::$jsActions
WFView::$jsEvents
WFView::$jsImports
WFView::$originalOnEvent
WFView::$page
WFView::$parent
Methods
Constructor __construct (line 183)
  • access: public
WFTableColumn __construct ( $id,  $page)
  • $id
  • $page

Redefinition of:
WFView::__construct()
Constructor.
addChild (line 226)

To implement our columns functionality, we need to detect when a child objects have been added.

void addChild (WFView $view)

Redefinition of:
WFView::addChild()
Add a child view to this view.
label (line 192)
  • access: public
void label ()
setLabel (line 196)
  • access: public
void setLabel ( $l)
  • $l
table (line 216)
  • access: public
void table ()
templateCode (line 200)
  • access: public
void templateCode ( $rowI)
  • $rowI

Inherited Methods

Inherited From WFView

WFView::__construct()
WFView::addChild()
WFView::allConfigFinishedLoading()
WFView::children()
WFView::cloneWithID()
WFView::enabled()
WFView::exposedProperties()
WFView::getForm()
WFView::getJSActions()
WFView::getListenerJS()
WFView::getListenerJSInScriptTag()
WFView::getOnEvent()
WFView::getWidgetDir()
WFView::getWidgetWWWDir()
WFView::id()
WFView::importCSS()
WFView::importJS()
WFView::jsEndHTML()
WFView::jsStartHTML()
WFView::page()
WFView::parent()
WFView::removeChild()
WFView::render()
WFView::setEnabled()
WFView::setId()
WFView::setJSonBlur()
WFView::setJSonClick()
WFView::setListener()
WFView::setOnEvent()
WFView::setParent()
WFView::yuiPath()

Inherited From WFObject

WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::setValuesForKeys()
WFObject::validatedSetValueForKey()
WFObject::validatedSetValueForKeyPath()
WFObject::validateObject()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForStaticKey()
WFObject::valueForStaticKeyPath()
WFObject::valueForTargetAndKeyPath()
WFObject::valueForUndefinedKey()
WFObject::valueForUndefinedStaticKey()
WFObject::valuesForKeyPaths()
WFObject::valuesForKeys()
WFObject::_valueForStaticKey()
WFObject::__toString()

Documentation generated on Thu, 14 May 2009 16:20:33 -0400 by phpDocumentor 1.4.2