Clover coverage report - Code Coverage for tapestry-contrib release 4.0-beta-12
Coverage timestamp: Sun Oct 30 2005 16:28:27 EST
file stats: LOC: 46   Methods: 1
NCLOC: 13   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
FormTable.java 0% 0% 0% 0%
coverage
 1    // Copyright 2004, 2005 The Apache Software Foundation
 2    //
 3    // Licensed under the Apache License, Version 2.0 (the "License");
 4    // you may not use this file except in compliance with the License.
 5    // You may obtain a copy of the License at
 6    //
 7    // http://www.apache.org/licenses/LICENSE-2.0
 8    //
 9    // Unless required by applicable law or agreed to in writing, software
 10    // distributed under the License is distributed on an "AS IS" BASIS,
 11    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12    // See the License for the specific language governing permissions and
 13    // limitations under the License.
 14   
 15    package org.apache.tapestry.contrib.table.components;
 16   
 17    import org.apache.tapestry.contrib.table.model.ITableModelSource;
 18   
 19    /**
 20    * A modified version of the facade component in the Table family.
 21    * FormTable allows you to present a sortable and pagable table
 22    * within a form by using only this one component.
 23    *
 24    * [<a href="../../../../../../../ComponentReference/contrib.FormTable.html">Component Reference</a>]
 25    *
 26    * @author mindbridge
 27    *
 28    */
 29    public abstract class FormTable extends Table implements ITableModelSource
 30    {
 31    // parameters
 32    public abstract Object getColumns();
 33   
 34    /**
 35    * If the columns are defined via a String, make sure they use
 36    * the form-specific column headers.
 37    */
 38  0 public Object getFormColumns()
 39    {
 40  0 Object objColumns = getColumns();
 41  0 if (objColumns instanceof String)
 42  0 objColumns = "*" + objColumns;
 43  0 return objColumns;
 44    }
 45   
 46    }