Package org.apache.tapestry.contrib.table.model.simple

Examples of org.apache.tapestry.contrib.table.model.simple.SimpleTableState


{
    private SimpleTableState m_objTableState;

    protected AbstractTableModel()
    {
        this(new SimpleTableState());
    }
View Full Code Here


  public SqlTableModel(
    ISqlTableDataSource objDataSource,
    SqlTableColumnModel objColumnModel)
  {
    this(objDataSource, objColumnModel, new SimpleTableState());
  }
View Full Code Here

        if (objDataModel == null)
            throw new ApplicationRuntimeException(TableUtils.format("invalid-table-source", getExtendedId(), objSourceValue.getClass()));

        if (objState == null)
            objState = new SimpleTableState();

        return new SimpleTableModel(objDataModel, objColumnModel, objState);
    }
View Full Code Here

  public SqlTableModel(
    ISqlTableDataSource objDataSource,
    SqlTableColumnModel objColumnModel)
  {
    this(objDataSource, objColumnModel, new SimpleTableState());
  }
View Full Code Here

        // (backward compatibility)
        if (m_objView.getCachedTableModelValue() != null)
            return (Serializable) objModel;
           
        // otherwise save only the state
        return new SimpleTableState(objModel.getPagingState(), objModel.getSortingState());
    }
View Full Code Here

    protected ITableModel generateTableModel(SimpleTableState objState)
    {
        // create a new table state if none is passed
        if (objState == null)
        {
            objState = new SimpleTableState();
            objState.getSortingState().setSortColumn(getInitialSortColumn(), getInitialSortOrder());
        }

        // update the page size if set in the parameter
        IBinding objPageSizeBinding = getPageSizeBinding();
View Full Code Here

TOP

Related Classes of org.apache.tapestry.contrib.table.model.simple.SimpleTableState

Copyright © 2018 www.massapicom. 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.