[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Web/UI/WebControls/ -> TDropDownList.php (sommaire)

TDropDownList class file

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TDropDownList.php 1397 2006-09-07 07:55:53Z wei $
Poids: 132 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TDropDownList:: (7 méthodes):
  addAttributesToRender()
  getClientClassName()
  loadPostData()
  raisePostDataChangedEvent()
  getSelectedIndex()
  setSelectedIndices()
  getValidationPropertyValue()


Classe: TDropDownList  - X-Ref

TDropDownList class

TDropDownList displays a dropdown list on a Web page.
It inherits all properties and events from {@link TListControl}.

Since v3.0.3, TDropDownList starts to support optgroup. To specify an option group for
a list item, set a Group attribute with it,
<code>
$listitem->Attributes->Group="Group Name";
// or <com:TListItem Attributes.Group="Group Name" .../> in template
</code>

addAttributesToRender($writer)   X-Ref
Adds attributes to renderer.

param: THtmlWriter the renderer

getClientClassName()   X-Ref
Gets the name of the javascript class responsible for performing postback for this control.
This method overrides the parent implementation.

return: string the javascript class name

loadPostData($key,$values)   X-Ref
Loads user input data.
This method is primarly used by framework developers.

param: string the key that can be used to retrieve data from the input data collection
param: array the input data collection
return: boolean whether the data of the component has been changed

raisePostDataChangedEvent()   X-Ref
Raises postdata changed event.
This method is required by {@link IPostBackDataHandler} interface.
It is invoked by the framework when {@link getSelectedIndex SelectedIndex} property
is changed on postback.
This method is primarly used by framework developers.


getSelectedIndex()   X-Ref

return: integer the index (zero-based) of the item being selected.

setSelectedIndices($indices)   X-Ref


getValidationPropertyValue()   X-Ref
Returns the value to be validated.
This methid is required by IValidatable interface.

return: mixed the value of the property to be validated.



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7