<?php
// Copyright (c) MetaClass, 2003-2007
// Licensed under the Academic Free License version 3.0
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 {
var $settedCompulsory = true;
var $autoSelectFirst = false;
var $width;
/** string label of the option by which to select 'no value' */
var $unselectLabel = '';