Clover coverage report - Code Coverage for tapestry-contrib release 4.0-beta-8
Coverage timestamp: Sat Sep 24 2005 11:56:21 EDT
file stats: LOC: 49   Methods: 0
NCLOC: 8   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ITablePagingState.java - - - -
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.model;
 16   
 17    /**
 18    * An interface defining the management of the table's paging state.
 19    *
 20    * @author mindbridge
 21    */
 22    public interface ITablePagingState
 23    {
 24    /**
 25    * Method getPageSize provides the size of a page in a number of records.
 26    * This value may be meaningless if the model uses a different method for pagination.
 27    * @return int the current page size
 28    */
 29    int getPageSize();
 30   
 31    /**
 32    * Method setPageSize updates the size of a page in a number of records.
 33    * This value may be meaningless if the model uses a different method for pagination.
 34    * @param nPageSize the new page size
 35    */
 36    void setPageSize(int nPageSize);
 37   
 38    /**
 39    * Gets the currently selected page. The page number is counted from 0.
 40    * @return int the current active page
 41    */
 42    int getCurrentPage();
 43   
 44    /**
 45    * Sets the newly selected page. The page number is counted from 0.
 46    * @param nPage the new active page
 47    */
 48    void setCurrentPage(int nPage);
 49    }