silverorange Code


Swat.SwatFrameDisclosure
/Swat/SwatFrameDisclosure.php at line 15

Class SwatFrameDisclosure

SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatContainer
└─SwatDisplayableContainer
└─SwatDisclosure
└─SwatFrameDisclosure

public class SwatFrameDisclosure
extends SwatDisclosure

A frame-like container to show and hide child widgets

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

Fields inherited from Swat.SwatDisclosure
open, title
Constructor Summary

SwatFrameDisclosure(string id)

Creates a new frame disclosure container.

Method Summary
void

display()

Displays this frame disclosure container.

protected array

getCSSClassNames()

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

protected void

getContainerDivTag()

protected string

getJavaScriptClass()

Gets the name of the JavaScript class to instantiate for this disclosure.

protected void

getSpanTag()

Methods inherited from Swat.SwatDisclosure
display, getAnimateDivTag, getCSSClassNames, getContainerDivTag, getControlDivTag, getInlineJavaScript, getInputTag, getJavaScriptClass, getPaddingDivTag, getSpanTag
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/SwatFrameDisclosure.php at line 26

SwatFrameDisclosure

public SwatFrameDisclosure(string id)

Creates a new frame disclosure container

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

Method Detail

/Swat/SwatFrameDisclosure.php at line 46

display

public void display()

Displays this frame disclosure container

Creates appropriate divs and outputs closed or opened based on the initial state.

The disclosure is always displayed as opened in case the user has JavaScript turned off.


/Swat/SwatFrameDisclosure.php at line 141

getCSSClassNames

protected array getCSSClassNames()

Gets the array of CSS classes that are applied to this disclosure

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

/Swat/SwatFrameDisclosure.php at line 97

getContainerDivTag

protected void getContainerDivTag()

/Swat/SwatFrameDisclosure.php at line 127

getJavaScriptClass

protected string getJavaScriptClass()

Gets the name of the JavaScript class to instantiate for this disclosure

Subclasses of this class may want to return a sub-class of the default JavaScript disclosure class.

Returns:
the name of the JavaScript class to instantiate for this frame disclosure.

/Swat/SwatFrameDisclosure.php at line 108

getSpanTag

protected void getSpanTag()

silverorange Code