Docs For Class TabControlWidget

## Class TabControlWidget

Description

This class is used for creating a tab control panel.

the tab buttons are generated with overlapping background images that grow and shrink depending on the length of text.

- todo: figure out a way to hook in a css tab that joins the tab control. I was having trouble making it work and gave up after a few hours.
- link: http://alistapart.com/articles/slidingdoors2/
- link: http://alistapart.com/articles/slidingdoors/
- author: Culley Harrelson <culley@fastmail.fm>

Located in /widgets/TabControlWidget.inc (line 25)

    Container
       |
       --BaseWidget
          |
          --TabControlWidget

Variable Summary
mixed $_align
mixed $_tabs
mixed $_title
Method Summary
TabControlWidget TabControlWidget ([string $title = NULL], [string $align = 'left'])
void add_tab (ATag $href, [boolean $selected = FALSE])
void render ([mixed $indent_level = 1], mixed $output_debug)
Variables
mixed $_align (line 28)
mixed $_tabs = array() (line 27)
mixed $_title (line 29)

#### Inherited Variables

Inherited from BaseWidget

> BaseWidget::$title
> BaseWidget::$width
> BaseWidget::$_image_prefix

Methods
Constructor TabControlWidget (line 38)

This is the constructor for the TabControlWidget object.

- todo: figure out center alignment

TabControlWidget TabControlWidget ([string $title = NULL], [string $align = 'left'])

- string $title: - a title string displayed on the opposite side
- string $align: - right or left-- how to align the tab control

add_tab (line 51)

add a tab.

void add_tab (ATag $href, [boolean $selected = FALSE])

- ATag $href: - an anchor tag object used for the tab link
- boolean $selected: whether or not the tab is the selected tab

render (line 61)

render the widget

void render ([mixed $indent_level = 1], mixed $output_debug)

Redefinition of:

Container::render()
  This function is compatible with the rest of the phpHtmllib API spec.

#### Inherited Methods

Inherited From BaseWidget

> BaseWidget::get_align()
> BaseWidget::get_css()
> BaseWidget::get_javascript()
> BaseWidget::get_title()
> BaseWidget::get_width()
> BaseWidget::set_align()
> BaseWidget::set_image_path_prefix()
> BaseWidget::set_title()
> BaseWidget::set_width()

Inherited From Container

> Container::Container()
> Container::add()
> Container::add_reference()
> Container::count_content()
> Container::get_element()
> Container::get_indent_flag()
> Container::push()
> Container::push_reference()
> Container::render()
> Container::reset_content()
> Container::set_collapse()
> Container::set_indent_flag()

Documentation generated on Thu, 1 Sep 2005 17:06:33 -0700 by phpDocumentor 1.3.0RC3