<?php
// Copyright (c) MetaClass, 2003-2007
// Licensed under the Academic Free License version 3.0
includeClass('', 'pnt/web/parts');
includeClass('PntXmlNavText', 'pnt/web/dom');
/** Part that outputs html descirbing a table with rows for object
* and columns for their properties.
* As a default columns can be specified in metadata on the class
* specified by pntType request parameter,
* @see http://www.phppeanuts.org/site/index_php/Pagina/61
*
* This abstract superclass provides behavior for the concrete
* subclass TablePart in the root classFolder or in the application 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/web/parts
*/
class PntTablePart extends {
/** HTML message shown instead of rows if noTableIfNoItems */
var $noItemsMessage = 'No Items';
/** If true no table is shown if no items */
var $noTableIfNoItems = true;
/** If true checkboxes are printed at the start of each row */
var $itemSelectWidgets = true;
/** int or empy string */
var $tableWidth='';
var $selectedId=-1;
/** If true a header row with columnlabels is printed */
var $showPropHeaders = true;
/** HTML item backgroundcolor */
var $itemBgColor='white';
/** HTML item highlightcolor */
var $itemHlColor='#ffffa0';
/** HTML table backgroundcolor */
var $bgColor;
//legecay support - old PntTable protocol from before the intro of PntHorizontalTablePart
var $showTableHeaders;
var $rowBgColor;
var $rowHlColor;
var $handler_printItemRows;
var $pntTableEqField;