[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
TTextBox class file.
Author: | Qiang Xue <qiang.xue@gmail.com> |
Copyright: | Copyright © 2005 PradoSoft |
License: | http://www.pradosoft.com/license/ |
Version: | $Id: TTextBox.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 527 lignes (17 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
TTextBox:: (34 méthodes):
getTagName()
addAttributesToRender()
getPostBackOptions()
loadPostData()
getValidationPropertyValue()
onTextChanged()
raisePostDataChangedEvent()
renderContents()
getAutoCompleteType()
setAutoCompleteType()
getAutoPostBack()
setAutoPostBack()
getAutoTrim()
setAutoTrim()
getCausesValidation()
setCausesValidation()
getColumns()
setColumns()
getMaxLength()
setMaxLength()
getReadOnly()
setReadOnly()
getRows()
setRows()
getText()
setText()
getSafeText()
getSafeTextParser()
getTextMode()
setTextMode()
getValidationGroup()
setValidationGroup()
getWrap()
setWrap()
TTextBoxMode:: (0 méthodes):
TTextBoxAutoCompleteType:: (0 méthodes):
getTagName() X-Ref |
return: string tag name of the textbox |
addAttributesToRender($writer) X-Ref |
Adds attribute name-value pairs to renderer. This method overrides the parent implementation with additional textbox specific attributes. param: THtmlWriter the writer used for the rendering purpose |
getPostBackOptions() X-Ref |
Gets the post back options for this textbox. return: array |
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 |
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. |
onTextChanged($param) X-Ref |
Raises <b>OnTextChanged</b> event. This method is invoked when the value of the {@link getText Text} property changes on postback. If you override this method, be sure to call the parent implementation to ensure the invocation of the attached event handlers. param: TEventParameter event parameter to be passed to the event handlers |
raisePostDataChangedEvent() X-Ref |
Raises postdata changed event. This method is required by {@link IPostBackDataHandler} interface. It is invoked by the framework when {@link getText Text} property is changed on postback. This method is primarly used by framework developers. |
renderContents($writer) X-Ref |
Renders the body content of the textbox when it is in MultiLine text mode. param: THtmlWriter the writer for rendering |
getAutoCompleteType() X-Ref |
return: TTextBoxAutoCompleteType the AutoComplete type of the textbox |
setAutoCompleteType($value) X-Ref |
param: TTextBoxAutoCompleteType the AutoComplete type of the textbox, default value is TTextBoxAutoCompleteType::None. |
getAutoPostBack() X-Ref |
return: boolean a value indicating whether an automatic postback to the server |
setAutoPostBack($value) X-Ref |
Sets the value indicating if postback automatically. An automatic postback to the server will occur whenever the user modifies the text in the TTextBox control and then tabs out of the component. param: boolean the value indicating if postback automatically |
getAutoTrim() X-Ref |
return: boolean a value indicating whether the input text should be trimmed spaces. Defaults to false. |
setAutoTrim($value) X-Ref |
Sets the value indicating if the input text should be trimmed spaces param: boolean the value indicating if the input text should be trimmed spaces |
getCausesValidation() X-Ref |
return: boolean whether postback event trigger by this text box will cause input validation, default is true. |
setCausesValidation($value) X-Ref |
param: boolean whether postback event trigger by this text box will cause input validation. |
getColumns() X-Ref |
return: integer the display width of the text box in characters, default is 0 meaning not set. |
setColumns($value) X-Ref |
Sets the display width of the text box in characters. param: integer the display width, set it 0 to clear the setting |
getMaxLength() X-Ref |
return: integer the maximum number of characters allowed in the text box, default is 0 meaning not set. |
setMaxLength($value) X-Ref |
Sets the maximum number of characters allowed in the text box. param: integer the maximum length, set it 0 to clear the setting |
getReadOnly() X-Ref |
return: boolean whether the textbox is read only, default is false. |
setReadOnly($value) X-Ref |
param: boolean whether the textbox is read only |
getRows() X-Ref |
return: integer the number of rows displayed in a multiline text box, default is 4 |
setRows($value) X-Ref |
Sets the number of rows displayed in a multiline text box. param: integer the number of rows |
getText() X-Ref |
return: string the text content of the TTextBox control. |
setText($value) X-Ref |
Sets the text content of the TTextBox control. param: string the text content |
getSafeText() X-Ref |
return: string safe text content with javascript stripped off |
getSafeTextParser() X-Ref |
return: mixed safe text parser |
getTextMode() X-Ref |
return: TTextBoxMode the behavior mode of the TTextBox component. Defaults to TTextBoxMode::SingleLine. |
setTextMode($value) X-Ref |
Sets the behavior mode of the TTextBox component. param: TTextBoxMode the text mode |
getValidationGroup() X-Ref |
return: string the group of validators which the text box causes validation upon postback |
setValidationGroup($value) X-Ref |
param: string the group of validators which the text box causes validation upon postback |
getWrap() X-Ref |
return: boolean whether the text content wraps within a multiline text box. Defaults to true. |
setWrap($value) X-Ref |
Sets the value indicating whether the text content wraps within a multiline text box. param: boolean whether the text content wraps within a multiline text box. |
Classe: TTextBoxMode - X-Ref
TTextBoxMode class.Classe: TTextBoxAutoCompleteType - X-Ref
TTextBoxAutoCompleteType class.Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |