diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-20 22:43:27 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-20 22:43:27 +0100 |
commit | 464a235c8c7dc070fb10ac47f2186f24a077ae0d (patch) | |
tree | 373c609aaa4ef489db51f6a0a089451fc80af472 /framework/Web/UI/JuiControls/TJuiAutoComplete.php | |
parent | 7369988330bf8796d9cf2564756baf4eb46871ba (diff) |
One class per file: framework/Web/UI/JuiControls
Diffstat (limited to 'framework/Web/UI/JuiControls/TJuiAutoComplete.php')
-rw-r--r-- | framework/Web/UI/JuiControls/TJuiAutoComplete.php | 72 |
1 files changed, 1 insertions, 71 deletions
diff --git a/framework/Web/UI/JuiControls/TJuiAutoComplete.php b/framework/Web/UI/JuiControls/TJuiAutoComplete.php index f6663057..1ef05ba2 100644 --- a/framework/Web/UI/JuiControls/TJuiAutoComplete.php +++ b/framework/Web/UI/JuiControls/TJuiAutoComplete.php @@ -404,74 +404,4 @@ class TJuiAutoComplete extends TActiveTextBox implements INamingContainer, IJuiO { return 'Prado.WebUI.TJuiAutoComplete'; } -} - -/** - * TAutCompleteEventParameter contains the {@link getToken Token} requested by - * the user for a partial match of the suggestions. - * - * The {@link getSelectedIndex SelectedIndex} is a zero-based index of the - * suggestion selected by the user, -1 if not suggestion is selected. - * - * @author Wei Zhuo <weizhuo[at]gmail[dot]com> - * @package System.Web.UI.ActiveControls - * @since 3.1 - */ -class TJuiAutoCompleteEventParameter extends TCallbackEventParameter -{ - private $_selectedIndex=-1; - - /** - * Creates a new TCallbackEventParameter. - */ - public function __construct($response, $parameter, $index=-1) - { - parent::__construct($response, $parameter); - $this->_selectedIndex=$index; - } - - /** - * @return int selected suggestion zero-based index, -1 if not selected. - */ - public function getSelectedIndex() - { - return $this->_selectedIndex; - } - - /** - * @return string token for matching a list of suggestions. - */ - public function getToken() - { - return $this->getCallbackParameter(); - } -} - -/** - * TJuiAutoCompleteTemplate class. - * - * TJuiAutoCompleteTemplate is the default template for TJuiAutoCompleteTemplate - * item template. - * - * @author Wei Zhuo <weizhuo[at]gmail[dot]com> - * @package System.Web.UI.ActiveControls - * @since 3.1 - */ -class TJuiAutoCompleteTemplate extends TComponent implements ITemplate -{ - private $_template; - - public function __construct($template) - { - $this->_template = $template; - } - /** - * Instantiates the template. - * It creates a {@link TDataList} control. - * @param TControl parent to hold the content within the template - */ - public function instantiateIn($parent) - { - $parent->getControls()->add($this->_template); - } -} +}
\ No newline at end of file |