silverorange Code


Swat.SwatToolbar
/Swat/SwatToolbar.php at line 15

Class SwatToolbar

SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatContainer
└─SwatDisplayableContainer
└─SwatToolbar

public class SwatToolbar
extends SwatDisplayableContainer

A toolbar container for a group of related SwatToolLink objects

Copyright:
2005-2006 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Constructor Summary

SwatToolbar(string id)

Creates a new toolbar.

Method Summary
void

display()

Displays this toolbar as an unordered list with each sub-item as a list item.

protected void

displayChildren()

Displays the child widgets of this container.

protected array

getCSSClassNames()

Gets the array of CSS classes that are applied to this tool bar.

array

getToolLinks()

Gets the tool links of this toolbar.

void

setToolLinkValues(string value)

Sets the value of all SwatToolLink objects within this toolbar.

Methods inherited from Swat.SwatDisplayableContainer
display, getCSSClassNames
Methods inherited from Swat.SwatContainer
add, addChild, copy, display, displayChildren, getChild, getChildren, getDescendantStates, getDescendants, getFirst, getFirstDescendant, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, notifyOfAdd, packEnd, packStart, printWidgetTree, process, remove, replace, sendAddNotifySignal, setDescendantStates
Methods inherited from Swat.SwatWidget
addCompositeWidget, addMessage, confirmCompositeWidgets, copy, createCompositeWidgets, display, displayHtmlHeadEntries, getCSSClassNames, getCompositeWidget, getCompositeWidgets, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, isDisplayed, isInitialized, isProcessed, isSensitive, printWidgetTree, process, replaceWithContainer
Methods inherited from Swat.SwatUIObject
addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible

Constructor Detail

/Swat/SwatToolbar.php at line 26

SwatToolbar

public SwatToolbar(string id)

Creates a new toolbar

Parameters:
id - a non-visible unique id for this widget.
See Also:
SwatWidget::__construct()

Method Detail

/Swat/SwatToolbar.php at line 41

display

public void display()

Displays this toolbar as an unordered list with each sub-item as a list item


/Swat/SwatToolbar.php at line 101

displayChildren

protected void displayChildren()

Displays the child widgets of this container


/Swat/SwatToolbar.php at line 120

getCSSClassNames

protected array getCSSClassNames()

Gets the array of CSS classes that are applied to this tool bar

Returns:
the array of CSS classes that are applied to this tool bar.
See Also:
SwatUIObject::getCSSClassString()

/Swat/SwatToolbar.php at line 85

getToolLinks

public array getToolLinks()

Gets the tool links of this toolbar

Returns an the array of SwatToolLink objects contained by this toolbar.

Returns:
the tool links contained by this toolbar.

/Swat/SwatToolbar.php at line 68

setToolLinkValues

public void setToolLinkValues(string value)

Sets the value of all SwatToolLink objects within this toolbar

This is usually more convenient than setting all the values by hand if the values are dynamic.


silverorange Code