System.Web.UI.WebControls
[ class tree: System.Web.UI.WebControls ] [ index: System.Web.UI.WebControls ] [ all elements ]

Class: TListItem

Source Location: /Web/UI/WebControls/TListItem.php

Class Overview

TComponent
   |
   --TListItem

TListItem class

Class Details

[line 40]
TListItem class

A TListItem control represents an item in the TListControl control, such as heading section, footer section, or a data item. The data items are stored in the Items property of TListControl control.

Namespace: System.Web.UI.WebControls

Properties

  • Selected, mixed
    Gets or sets whether this item is selected or not.
  • Text, mixed
    Gets or sets the text displayed for this item.
  • Value, mixed
    Gets or sets the value of the item




version:  $Revision: 1.6 $ $Date: 2005/01/04 21:32:45 $
author:  Marcus Nyeholt <tanus@users.sourceforge.net>


[ Top ]

Methods


Inherited Variables

Inherited Methods

Class: TComponent

TComponent::__construct()
Constructor.
TComponent::addChild()
Adds a child component.
TComponent::addParsedObject()
Handles a component or string met in template.
TComponent::attachEventHandler()
Attaches a handler function to an event.
TComponent::bindProperty()
Sets up the binding between a property and an expression.
TComponent::canGetProperty()
Determines whether a property can be read.
TComponent::canSetProperty()
Determines whether a property can be written.
TComponent::createComponent()
Creates a child component.
TComponent::dataBind()
Performs the databinding for this component.
TComponent::evaluateExpression()
Evaluates a PHP expression.
TComponent::evaluateStatements()
Evaluates a list of PHP statements.
TComponent::findObject()
Finds an object by its ID path.
TComponent::getApplication()
TComponent::getChild()
TComponent::getChildren()
TComponent::getDefinition()
Returns or builds a component definition.
TComponent::getGlobalization()
Returns the Globalization instance for the application.
TComponent::getID()
TComponent::getModule()
Returns the module object that contains the component or the page containing the component.
TComponent::getPage()
TComponent::getParent()
TComponent::getPropertyInitValue()
Gets the initial value of a property.
TComponent::getPropertyType()
Returns the type of a property
TComponent::getRequest()
Returns the request object associated with application.
TComponent::getServiceManager()
Returns the service manager for this application.
TComponent::getSession()
Returns the session object associated with the application.
TComponent::getSessionState()
Returns a session variable.
TComponent::getUniqueID()
Returns the unique ID of the component.
TComponent::getUser()
Returns the user object associated with the application.
TComponent::hasChildren()
TComponent::hasEvent()
Determines whether an event is defined.
TComponent::hasProperty()
Determines whether a property is defined.
TComponent::initProperties()
Initializes the property values.
TComponent::instantiateTemplate()
Parses a template string and instantiates the content.
TComponent::onDataBinding()
This method is invoked when dataBind is invoked for the component.
TComponent::raiseEvent()
Invokes all attached event handler functions for a particular event.
TComponent::removeChild()
Removes a child component.
TComponent::removeChildren()
Removes all child components.
TComponent::setAttribute()
Sets an attribute.
TComponent::setDefinition()
Sets a component definition.
TComponent::setID()
Sets a component ID.
TComponent::setParent()
Sets the parent of this component.
TComponent::setPropertyInitValue()
Sets the initial value of a property.
TComponent::setRoot()
Sets the root component in the component hierarchy.
TComponent::setSessionState()
Sets a session variable.
TComponent::unbindProperty()
Breaks the binding between a property and an expression.
TComponent::__get()
Returns a property value by name or a child component by ID.
TComponent::__set()
Sets value of a component property.

Class Methods


method getText [line 80]

mixed getText( )



return:  the value of the data item
access:  public


[ Top ]

method getValue [line 97]

string getValue( )



return:  the item value
access:  public


[ Top ]

method isSelected [line 63]

mixed isSelected( )



return:  the index of the data item
access:  public


[ Top ]

method setSelected [line 72]

void setSelected( mixed $value)

Sets whether the item is selected.



access:  public


Parameters:

mixed   $value   the data item index

[ Top ]

method setText [line 89]

void setText( mixed $value)

Sets the value of the data item



access:  public


Parameters:

mixed   $value   the value of the data item

[ Top ]

method setValue [line 106]

void setValue( string $value)

Sets the item value



access:  public


Parameters:

string   $value   the item value

[ Top ]


© 2004-2005 PRADO Software Group. All Rights Reserved.