Examples of ITableModel


Examples of org.apache.tapestry.contrib.table.model.ITableModel

     *  what to save and the SessionStoreManager to determine where to save it. 
     *
     */
    protected void saveSessionState()
    {
        ITableModel objModel = getTableModel();
        Serializable objState = getTableSessionStateManager().getSessionState(objModel);
        storeSessionState(objState);
    }
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.ITableModel

     *  Make sure that the values stored in the model are useable and correct.
     *  The changes made here are not saved. 
     */
    protected void validateValues()
    {
        ITableModel objModel = getTableModel();

        // make sure current page is within the allowed range
        ITablePagingState objPagingState = objModel.getPagingState();
        int nCurrentPage = objPagingState.getCurrentPage();
        int nPageCount = objModel.getPageCount();
        if (nCurrentPage >= nPageCount)
        {
            // the current page is greater than the page count. adjust.
            nCurrentPage = nPageCount - 1;
            objPagingState.setCurrentPage(nCurrentPage);
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.ITableModel

     *
     * @return an iterator of all table rows
     */
    public Iterator getTableRowsIterator()
    {
        ITableModel objTableModel = getTableModelSource().getTableModel();
        return objTableModel.getCurrentPageRows();
    }
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.ITableModel

    ComponentAddress objAddr = (ComponentAddress) arrArgs[0];
    String strColumnName = (String) arrArgs[1];

    ITableModelSource objSource =
      (ITableModelSource) objAddr.findComponent(objCycle);
    ITableModel objModel = objSource.getTableModel();

    ITableSortingState objState = objModel.getSortingState();
    if (strColumnName.equals(objState.getSortColumn()))
      objState.setSortColumn(strColumnName, !objState.getSortOrder());
    else
      objState.setSortColumn(
        strColumnName,
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.ITableModel

     *  what to save and the SessionStoreManager to determine where to save it. 
     *
     */
    protected void saveSessionState()
    {
        ITableModel objModel = getTableModel();
        Serializable objState = getTableSessionStateManager().getSessionState(objModel);
        storeSessionState(objState);
    }
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.ITableModel

     *  Make sure that the values stored in the model are useable and correct.
     *  The changes made here are not saved. 
     */
    protected void validateValues()
    {
        ITableModel objModel = getTableModel();

        // make sure current page is within the allowed range
        ITablePagingState objPagingState = objModel.getPagingState();
        int nCurrentPage = objPagingState.getCurrentPage();
        int nPageCount = objModel.getPageCount();
        if (nCurrentPage >= nPageCount) {
            // the current page is greater than the page count. adjust.
            nCurrentPage = nPageCount - 1;
            objPagingState.setCurrentPage(nCurrentPage);
        }
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.ITableModel

     *
     * @return an iterator of all table rows
     */
    public Iterator getTableRowsIterator()
    {
        ITableModel objTableModel = getTableModelSource().getTableModel();
        return objTableModel.getCurrentPageRows();
    }
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.ITableModel

    ComponentAddress objAddr = (ComponentAddress) arrArgs[0];
    String strColumnName = (String) arrArgs[1];

    ITableModelSource objSource =
      (ITableModelSource) objAddr.findComponent(objCycle);
    ITableModel objModel = objSource.getTableModel();

    ITableSortingState objState = objModel.getSortingState();
    if (strColumnName.equals(objState.getSortColumn()))
      objState.setSortColumn(strColumnName, !objState.getSortOrder());
    else
      objState.setSortColumn(
        strColumnName,
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.ITableModel

     *  what to save and the SessionStoreManager to determine where to save it. 
     *
     */
    protected void saveSessionState()
    {
        ITableModel objModel = getTableModel();
        Serializable objState = getTableSessionStateManager().getSessionState(objModel);
        storeSessionState(objState);
    }
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.ITableModel

     *  Make sure that the values stored in the model are useable and correct.
     *  The changes made here are not saved. 
     */
    protected void validateValues()
    {
        ITableModel objModel = getTableModel();

        // make sure current page is within the allowed range
        ITablePagingState objPagingState = objModel.getPagingState();
        int nCurrentPage = objPagingState.getCurrentPage();
        int nPageCount = objModel.getPageCount();
        if (nCurrentPage >= nPageCount)
        {
            // the current page is greater than the page count. adjust.
            nCurrentPage = nPageCount - 1;
            objPagingState.setCurrentPage(nCurrentPage);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.