PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TListItem

TListItem class.

TListItem represents an item in a list control. Each item has a setText Text property and a setValue Value property. If either one of them is not set, it will take the value of the other property. An item can be setSelected Selected or setEnabled Enabled, and it can have additional getAttributes Attributes which may be rendered if the list control supports so.

TComponent
Extended by TListItem
Package: System\Web\UI\WebControls
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/UI/WebControls/TListItem.php
Methods summary
public
# __construct( string $text = '', string $value = '', boolean $enabled = true, boolean $selected = false )

Constructor.

Constructor.

Parameters

$text
string
text of the item
$value
string
value of the item
$enabled
boolean
whether the item is enabled
$selected
boolean
whether the item is selected

Overrides

TComponent::__construct()
public boolean
# getEnabled( )

Returns

boolean
whether the item is enabled
public
# setEnabled( boolean $value )

Parameters

$value
boolean
whether the item is enabled
public boolean
# getSelected( )

Returns

boolean
whether the item is selected
public
# setSelected( boolean $value )

Parameters

$value
boolean
whether the item is selected
public string
# getText( )

Returns

string
text of the item
public
# setText( string $value )

Parameters

$value
string
text of the item
public string
# getValue( )

Returns

string
value of the item
public
# setValue( string $value )

Parameters

$value
string
value of the item
public TAttributeCollection
# getAttributes( )

Returns

TAttributeCollection
custom attributes
public boolean
# getHasAttributes( )

Returns

boolean
whether the item has any custom attribute
public boolean
# hasAttribute( string $name )

Parameters

$name
string
name of the attribute

Returns

boolean
whether the named attribute exists
public string
# getAttribute( mixed $name )

Returns

string
the named attribute value, null if attribute does not exist
public
# setAttribute( string $name, string $value )

Parameters

$name
string
attribute name
$value
string
value of the attribute
public string
# removeAttribute( string $name )

Removes the named attribute.

Removes the named attribute.

Parameters

$name
string
the name of the attribute to be removed.

Returns

string
attribute value removed, empty string if attribute does not exist.
Methods inherited from TComponent
__call(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO