|
PntSelectWidget |
PntCheckboxWidget |
PntDialogWidget |
PntFormWidget |
PntHtmlWidget |
PntMtoNDialogWidget |
PntTextAreaWidget |
PntTextWidget |
PntWidgetFactory |
|
__construct |
addOptionFromObject |
getAutoSelectFirst |
getName |
getOptionSelected |
getOptions |
getSelectedId |
getSettedCompulsory |
initialize |
printBody |
printOnChangeScript |
printSelectOptions |
printStyle |
printUnselectOption |
setAutoSelectFirst |
setOnChangeScript |
setOptions |
setOptionsFromObjects |
setOptionsFromValues |
setSelectedId |
setSettedCompulsory |
setWidth |
setWidthFromOptionsMaxLength |
|
<?php
/* Copyright (c) MetaClass, 2003-2013
Distrubuted and licensed under under the terms of the GNU Affero General Public License
version 3, or (at your option) any later version.
This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License, http://www.gnu.org/licenses/agpl.txt */
Gen::includeClass('', 'pnt/web/widgets');
/** FormWidget that generates html specifying
* a SELECT tag, by default as a dropdown list
* with values that are options for the property.
* @see http://www.phppeanuts.org/site/index_php/Pagina/128
*
* Limitation: PntSelectWidget assumes the id in the form, the idProperty
* and the id of the selected object in the property options to be equal.
* If the derived property's getter and setter behave differently,
* The SelectWidget may not be able to find the selected object in the list.
*
* This abstract superclass provides behavior for the concrete
* subclass SelectWidget in the widgets classFolder.
* To keep de application developers code (including localization overrides)
* separated from the framework code override methods in the
* concrete subclass rather then modify them here.
* @see http://www.phppeanuts.org/site/index_php/Menu/178
* @see http://www.phppeanuts.org/site/index_php/Pagina/65
* @package pnt/widgets
*/
class PntSelectWidget extends {
public $settedCompulsory = true;
public $autoSelectFirst = false;
public $width;
/** string label of the option by which to select 'no value' */
public $unselectLabel = '';
public $cssClass = 'pntSelectWidget';
public $selectedId;
|
Copyright (c) MetaClass, 2003-
This code is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
Click here for a copy of the license or see http://www.gnu.org/licenses/ .
|
|