## Class TBulletedList

Description

Implements interfaces:

- IPostBackEventHandler

TBulletedList class

TBulletedList displays items in a bullet format. The bullet style is specified by BulletStyle. When the style is 'CustomImage', the setBackImageUrl specifies the image used as bullets.

TBulletedList displays the item texts in three different modes, specified via DisplayMode. When the mode is 'Text', the item texts are displayed as static texts; When the mode is 'HyperLink', each item is displayed as a hyperlink whose URL is given by the item value, and the Target property can be used to specify the target browser window; When the mode is 'LinkButton', each item is displayed as a link button which posts back to the page if a user clicks on that and the event OnClick will be raised under such a circumstance.

- since: 3.0
- version: $Revision: $ $Date: $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /Web/UI/WebControls/TBulletedList.php (line 40)

    TComponent
       |
       --TApplicationComponent
          |
          --TControl
             |
             --TWebControl
                |
                --TDataBoundControl
                   |
                   --TListControl
                      |
                      --TBulletedList

Method Summary
void addAttributesToRender (THtmlWriter $writer)
void canCauseValidation ()
string getBulletImageUrl ()
string getBulletStyle ()
void getDisplayMode (string 0)
integer getFirstBulletNumber ()
array getPostBackOptions ()
string getTagName ()
string getTarget ()
void onClick (TBulletedListEventParameter $param)
void raisePostBackEvent (TEventParameter $param)
void render (THtmlWriter $writer)
void renderBulletText (THtmlWriter $writer, TListItem $item, integer $index)
void renderContents (THtmlWriter $writer)
void renderHyperLinkItem (mixed $writer, mixed $item, mixed $index)
void renderLinkButtonItem (mixed $writer, mixed $item, mixed $index)
void renderTextItem (mixed $writer, mixed $item, mixed $index)
void setAutoPostBack (mixed $value)
void setBulletImageUrl (string $value)
string setBulletStyle (mixed $value)
string setDisplayMode (mixed $value)
void setFirstBulletNumber (integer $value)
void setSelectedIndex (mixed $index)
void setSelectedIndices (mixed $indices)
void setSelectedValue (mixed $value)
void setTarget (string $value)
Methods
addAttributesToRender (line 91)

Adds attribute name-value pairs to renderer.

This overrides the parent implementation with additional bulleted list specific attributes.

- access: protected

void addAttributesToRender (THtmlWriter $writer)

- THtmlWriter $writer: the writer used for the rendering purpose

Redefinition of:

TListControl::addAttributesToRender()
  Adds attributes to renderer.

canCauseValidation (line 349)

- access: protected

void canCauseValidation ()
getBulletImageUrl (line 138)

- return: image URL used for bullets when BulletStyle is 'CustomImage'.
- access: public

string getBulletImageUrl ()
getBulletStyle (line 154)

- return: style of bullets. Defaults to 'NotSet'.
- access: public

string getBulletStyle ()
getDisplayMode (line 171)

- access: public

void getDisplayMode (string 0)

- string 0: display mode of the list. Defaults to 'Text'.

getFirstBulletNumber (line 190)

- return: starting index when BulletStyle is one of the following: 'Numbered', 'LowerAlpha', 'UpperAlpha', 'LowerRoman', 'UpperRoman'. Defaults to 1.
- access: public

integer getFirstBulletNumber ()
getPostBackOptions (line 338)

- return: postback options used for linkbuttons.
- access: protected

array getPostBackOptions ()

Redefinition of:

TListControl::getPostBackOptions()

getTagName (line 72)

- return: tag name of the bulleted list
- access: protected

string getTagName ()

Redefinition of:

TListControl::getTagName()

getTarget (line 220)

- return: the target window or frame to display the Web page content linked to when DisplayMode is 'HyperLink' and one of the hyperlinks is clicked.
- access: public

string getTarget ()
onClick (line 210)

Raises 'OnClick' event.

This method is invoked when the DisplayMode is 'LinkButton' and end-users click on one of the buttons.

- access: public

void onClick (TBulletedListEventParameter $param)

- TBulletedListEventParameter $param: event parameter.

raisePostBackEvent (line 62)

Raises the postback event.

This method is required by IPostBackEventHandler interface. If CausesValidation is true, it will invoke the page's TPage::validate method first. It will raise OnClick events. This method is mainly used by framework and control developers.

- access: public

void raisePostBackEvent (TEventParameter $param)

- TEventParameter $param: the event parameter

render (line 239)

Renders the control.

- access: public

void render (THtmlWriter $writer)

- THtmlWriter $writer: the writer for the rendering purpose.

Redefinition of:

TWebControl::render()
  Renders the control.

renderBulletText (line 271)

Renders each item

- access: protected

void renderBulletText (THtmlWriter $writer, TListItem $item, integer $index)

- THtmlWriter $writer: writer for the rendering purpose
- TListItem $item: item to be rendered
- integer $index: index of the item being rendered

renderContents (line 249)

Renders the body contents.

- access: public

void renderContents (THtmlWriter $writer)

- THtmlWriter $writer: the writer for the rendering purpose.

Redefinition of:

TListControl::renderContents()
  Renders body content of the list control.

renderHyperLinkItem (line 300)

- access: protected

void renderHyperLinkItem (mixed $writer, mixed $item, mixed $index)
renderLinkButtonItem (line 317)

- access: protected

void renderLinkButtonItem (mixed $writer, mixed $item, mixed $index)
renderTextItem (line 287)

- access: protected

void renderTextItem (mixed $writer, mixed $item, mixed $index)
setAutoPostBack (line 359)

- access: public
- throws: TNotSupportedException if this method is invoked

void setAutoPostBack (mixed $value)

Redefinition of:

TListControl::setAutoPostBack()
  Sets the value indicating if postback automatically.

setBulletImageUrl (line 146)

- access: public

void setBulletImageUrl (string $value)

- string $value: image URL used for bullets when BulletStyle is 'CustomImage'.

setBulletStyle (line 163)

- return: style of bullets. Valid values include 'NotSet','Numbered','LowerAlpha','UpperAlpha','LowerRoman','UpperRoman','Disc','Circle','Square','CustomImage'
- access: public

string setBulletStyle (mixed $value)
setDisplayMode (line 180)

- return: display mode of the list. Valid values include 'Text', 'HyperLink', 'LinkButton'.
- access: public

string setDisplayMode (mixed $value)
setFirstBulletNumber (line 199)

- access: public

void setFirstBulletNumber (integer $value)

- integer $value: starting index when BulletStyle is one of the following: 'Numbered', 'LowerAlpha', 'UpperAlpha', 'LowerRoman', 'UpperRoman'.

setSelectedIndex (line 367)

- access: public
- throws: TNotSupportedException if this method is invoked

void setSelectedIndex (mixed $index)

Redefinition of:

TListControl::setSelectedIndex()

setSelectedIndices (line 375)

- access: public
- throws: TNotSupportedException if this method is invoked

void setSelectedIndices (mixed $indices)

Redefinition of:

TListControl::setSelectedIndices()

setSelectedValue (line 383)

- access: public
- throws: TNotSupportedException if this method is invoked

void setSelectedValue (mixed $value)

Redefinition of:

TListControl::setSelectedValue()
  Sets selection by item value.

setTarget (line 230)

- access: public

void setTarget (string $value)

- string $value: the target window or frame to display the Web page content linked to when DisplayMode is 'HyperLink' and one of the hyperlinks is clicked.

#### Inherited Methods

Inherited From TListControl

> TListControl::addAttributesToRender()
> TListControl::addParsedObject()
> TListControl::clearSelection()
> TListControl::createListItemCollection()
> TListControl::formatDataValue()
> TListControl::getAppendDataBoundItems()
> TListControl::getAutoPostBack()
> TListControl::getCausesValidation()
> TListControl::getDataTextField()
> TListControl::getDataTextFormatString()
> TListControl::getDataValueField()
> TListControl::getHasItems()
> TListControl::getIsMultiSelect()
> TListControl::getItemCount()
> TListControl::getItems()
> TListControl::getPostBackOptions()
> TListControl::getSelectedIndex()
> TListControl::getSelectedIndices()
> TListControl::getSelectedItem()
> TListControl::getSelectedValue()
> TListControl::getSelectedValues()
> TListControl::getTagName()
> TListControl::getText()
> TListControl::getValidationGroup()
> TListControl::loadState()
> TListControl::onSelectedIndexChanged()
> TListControl::onTextChanged()
> TListControl::performDataBinding()
> TListControl::renderContents()
> TListControl::saveState()
> TListControl::setAppendDataBoundItems()
> TListControl::setAutoPostBack()
> TListControl::setCausesValidation()
> TListControl::setDataTextField()
> TListControl::setDataTextFormatString()
> TListControl::setDataValueField()
> TListControl::setSelectedIndex()
> TListControl::setSelectedIndices()
> TListControl::setSelectedValue()
> TListControl::setSelectedValues()
> TListControl::setText()
> TListControl::setValidationGroup()

Inherited From TDataBoundControl

> TDataBoundControl::dataBind()
> TDataBoundControl::dataSourceViewChanged()
> TDataBoundControl::determineDataSource()
> TDataBoundControl::ensureDataBound()
> TDataBoundControl::getData()
> TDataBoundControl::getDataMember()
> TDataBoundControl::getDataSource()
> TDataBoundControl::getDataSourceID()
> TDataBoundControl::getDataSourceView()
> TDataBoundControl::getInitialized()
> TDataBoundControl::getIsDataBound()
> TDataBoundControl::getRequiresDataBinding()
> TDataBoundControl::getSelectParameters()
> TDataBoundControl::getUsingDataSourceID()
> TDataBoundControl::onDataBound()
> TDataBoundControl::onDataSourceChanged()
> TDataBoundControl::onInit()
> TDataBoundControl::onPreRender()
> TDataBoundControl::pagePreLoad()
> TDataBoundControl::performDataBinding()
> TDataBoundControl::setDataMember()
> TDataBoundControl::setDataSource()
> TDataBoundControl::setDataSourceID()
> TDataBoundControl::setInitialized()
> TDataBoundControl::setIsDataBound()
> TDataBoundControl::setRequiresDataBinding()
> TDataBoundControl::validateDataSource()

Inherited From TWebControl

> TWebControl::addAttributesToRender()
> TWebControl::copyBaseAttributes()
> TWebControl::createStyle()
> TWebControl::getAccessKey()
> TWebControl::getBackColor()
> TWebControl::getBorderColor()
> TWebControl::getBorderStyle()
> TWebControl::getBorderWidth()
> TWebControl::getCssClass()
> TWebControl::getFont()
> TWebControl::getForeColor()
> TWebControl::getHasStyle()
> TWebControl::getHeight()
> TWebControl::getStyle()
> TWebControl::getTabIndex()
> TWebControl::getTagName()
> TWebControl::getToolTip()
> TWebControl::getWidth()
> TWebControl::render()
> TWebControl::renderBeginTag()
> TWebControl::renderContents()
> TWebControl::renderEndTag()
> TWebControl::setAccessKey()
> TWebControl::setBackColor()
> TWebControl::setBorderColor()
> TWebControl::setBorderStyle()
> TWebControl::setBorderWidth()
> TWebControl::setCssClass()
> TWebControl::setForeColor()
> TWebControl::setHeight()
> TWebControl::setStyle()
> TWebControl::setTabIndex()
> TWebControl::setToolTip()
> TWebControl::setWidth()

Inherited From TControl

> TControl::__construct()
> TControl::addedControl()
> TControl::addParsedObject()
> TControl::applyStyleSheetSkin()
> TControl::autoBindProperty()
> TControl::autoDataBindProperties()
> TControl::bindProperty()
> TControl::broadcastEvent()
> TControl::broadcastEventInternal()
> TControl::bubbleEvent()
> TControl::clearChildState()
> TControl::clearControlState()
> TControl::clearNamingContainer()
> TControl::clearViewState()
> TControl::createChildControls()
> TControl::createControlCollection()
> TControl::createdOnTemplate()
> TControl::dataBind()
> TControl::dataBindChildren()
> TControl::dataBindProperties()
> TControl::ensureChildControls()
> TControl::findControl()
> TControl::findControlsByID()
> TControl::findControlsByType()
> TControl::focus()
> TControl::getAdapter()
> TControl::getAllowChildControls()
> TControl::getAttribute()
> TControl::getAttributes()
> TControl::getChildControlsCreated()
> TControl::getClientID()
> TControl::getControls()
> TControl::getControlStage()
> TControl::getControlState()
> TControl::getEnabled()
> TControl::getEnableTheming()
> TControl::getEnableViewState()
> TControl::getHasAdapter()
> TControl::getHasAttributes()
> TControl::getHasControls()
> TControl::getID()
> TControl::getNamingContainer()
> TControl::getPage()
> TControl::getParent()
> TControl::getRegisteredObject()
> TControl::getSkinID()
> TControl::getSourceTemplateControl()
> TControl::getTemplateControl()
> TControl::getUniqueID()
> TControl::getViewState()
> TControl::getVisible()
> TControl::hasAttribute()
> TControl::initRecursive()
> TControl::isDescendentOf()
> TControl::isObjectRegistered()
> TControl::loadRecursive()
> TControl::loadState()
> TControl::loadStateRecursive()
> TControl::onDataBinding()
> TControl::onInit()
> TControl::onLoad()
> TControl::onPreRender()
> TControl::onUnload()
> TControl::preRenderRecursive()
> TControl::raiseBubbleEvent()
> TControl::registerObject()
> TControl::removeAttribute()
> TControl::removedControl()
> TControl::render()
> TControl::renderChildren()
> TControl::renderControl()
> TControl::saveState()
> TControl::saveStateRecursive()
> TControl::setAdapter()
> TControl::setAttribute()
> TControl::setChildControlsCreated()
> TControl::setControlStage()
> TControl::setControlState()
> TControl::setEnabled()
> TControl::setEnableTheming()
> TControl::setEnableViewState()
> TControl::setID()
> TControl::setPage()
> TControl::setSkinID()
> TControl::setTemplateControl()
> TControl::setViewState()
> TControl::setVisible()
> TControl::traverseChildControls()
> TControl::unbindProperty()
> TControl::unloadRecursive()
> TControl::unregisterObject()
> TControl::__get()

Inherited From TApplicationComponent

> TApplicationComponent::getApplication()
> TApplicationComponent::getRequest()
> TApplicationComponent::getResponse()
> TApplicationComponent::getService()
> TApplicationComponent::getSession()
> TApplicationComponent::getUser()
> TApplicationComponent::publishAsset()
> TApplicationComponent::publishFilePath()

Inherited From TComponent

> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Class Constants

#### Inherited Constants

Inherited from TControl

Documentation generated on Sun, 04 Jun 2006 18:58:40 -0400 by phpDocumentor 1.3.0RC4