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.

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 ([ $indent_level = 1], [ $output_debug = 0])
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 ([ $indent_level = 1], [ $output_debug = 0])
  • $indent_level
  • $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 Fri, 28 Jan 2011 08:53:24 -0500 by phpDocumentor 1.4.3