silverorange Code


Swat.SwatRadioList
/Swat/SwatRadioList.php at line 16

Class SwatRadioList

SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl
└─SwatOptionControl
└─SwatFlydown
└─SwatRadioList

public class SwatRadioList
extends SwatFlydown

A radio list selection widget

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

Fields inherited from Swat.SwatFlydown
blank_title, show_blank, value
Fields inherited from Swat.SwatOptionControl
options, serialize_values
Fields inherited from Swat.SwatInputControl
required
Constructor Summary

SwatRadioList(string id)

Creates a new radiolist.

Method Summary
void

display()

Displays this radio list.

protected void

displayDivider(SwatOption option)

Displays a divider option in this radio list.

protected void

displayOption(SwatOption option)

Displays an option in the radio list.

protected void

displayOptionLabel(SwatOption option)

Displays an option in the radio list.

protected array

getCSSClassNames()

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

protected boolean

processValue()

Processes the value of this radio list from user-submitted form data.

Methods inherited from Swat.SwatFlydown
addDivider, display, displaySingle, getCSSClassNames, getFocusableHtmlId, getState, process, processValue, reset, setState
Methods inherited from Swat.SwatOptionControl
addOption, addOptionsByArray, getOption, getOptions, getOptionsByValue, removeOption, removeOptionsByValue
Methods inherited from Swat.SwatInputControl
getForm, init
Methods inherited from Swat.SwatControl
addMessage, getNote, printWidgetTree
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/SwatRadioList.php at line 44

SwatRadioList

public SwatRadioList(string id)

Creates a new radiolist

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

Method Detail

/Swat/SwatRadioList.php at line 61

display

public void display()

Displays this radio list


/Swat/SwatRadioList.php at line 136

displayDivider

protected void displayDivider(SwatOption option)

Displays a divider option in this radio list


/Swat/SwatRadioList.php at line 155

displayOption

protected void displayOption(SwatOption option)

Displays an option in the radio list


/Swat/SwatRadioList.php at line 191

displayOptionLabel

protected void displayOptionLabel(SwatOption option)

Displays an option in the radio list


/Swat/SwatRadioList.php at line 212

getCSSClassNames

protected array getCSSClassNames()

Gets the array of CSS classes that are applied to this radio list

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

/Swat/SwatRadioList.php at line 109

processValue

protected boolean processValue()

Processes the value of this radio list from user-submitted form data

Returns:
true if the value was processed from form data

silverorange Code