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

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


                objState);

        // otherwise, the source parameter must contain the data to be displayed
        ITableDataModel objDataModel = null;
        if (objSourceValue instanceof Object[])
            objDataModel = new SimpleListTableDataModel((Object[]) objSourceValue);
        else if (objSourceValue instanceof List)
            objDataModel = new SimpleListTableDataModel((List) objSourceValue);
        else if (objSourceValue instanceof Collection)
            objDataModel = new SimpleListTableDataModel((Collection) objSourceValue);
        else if (objSourceValue instanceof Iterator)
            objDataModel = new SimpleListTableDataModel((Iterator) objSourceValue);

        if (objDataModel == null)
            throw new ApplicationRuntimeException(
                TableUtils.format(
                    "invalid-table-source",
View Full Code Here


  public TreeRowObject getTreeRow() {
    return getTreeRowObject();
  }

  public ITableSessionStateManager getTableSessionStateManager(){
    SimpleListTableDataModel objDataModel = new SimpleListTableDataModel(generateNodeList());
    SimpleTableColumnModel objColumnModel = new SimpleTableColumnModel(getTableColunms());
    SimpleTableSessionStateManager objStateManager = new SimpleTableSessionStateManager(objDataModel, objColumnModel);
    return objStateManager;
    //return NullTableSessionStateManager.NULL_STATE_MANAGER;
  }
View Full Code Here

        return getTreeRowObject();
    }

    public ITableSessionStateManager getTableSessionStateManager()
    {
        SimpleListTableDataModel objDataModel = new SimpleListTableDataModel(
                generateNodeList());
        SimpleTableColumnModel objColumnModel = new SimpleTableColumnModel(
                getTableColunms());
        SimpleTableSessionStateManager objStateManager = new SimpleTableSessionStateManager(
                objDataModel, objColumnModel);
View Full Code Here

                    objColumnModel, usableObjState);

        // otherwise, the source parameter must contain the data to be displayed
        ITableDataModel objDataModel = null;
        if (objSourceValue instanceof Object[])
            objDataModel = new SimpleListTableDataModel(
                    (Object[]) objSourceValue);
        else if (objSourceValue instanceof List)
            objDataModel = new SimpleListTableDataModel((List) objSourceValue);
        else if (objSourceValue instanceof Collection)
            objDataModel = new SimpleListTableDataModel(
                    (Collection) objSourceValue);
        else if (objSourceValue instanceof Iterator)
            objDataModel = new SimpleListTableDataModel(
                    (Iterator) objSourceValue);

        if (objDataModel == null)
            throw new ApplicationRuntimeException(TableMessages
                    .invalidTableSource(this, objSourceValue));
View Full Code Here

        return getTreeRowObject();
    }

    public ITableSessionStateManager getTableSessionStateManager()
    {
        SimpleListTableDataModel objDataModel = new SimpleListTableDataModel(generateNodeList());
        SimpleTableColumnModel objColumnModel = new SimpleTableColumnModel(getTableColunms());
        SimpleTableSessionStateManager objStateManager = new SimpleTableSessionStateManager(
                objDataModel, objColumnModel);
        return objStateManager;
        //return NullTableSessionStateManager.NULL_STATE_MANAGER;
View Full Code Here

                    objState);

        // otherwise, the source parameter must contain the data to be displayed
        ITableDataModel objDataModel = null;
        if (objSourceValue instanceof Object[])
            objDataModel = new SimpleListTableDataModel((Object[]) objSourceValue);
        else if (objSourceValue instanceof List)
            objDataModel = new SimpleListTableDataModel((List) objSourceValue);
        else if (objSourceValue instanceof Collection)
            objDataModel = new SimpleListTableDataModel((Collection) objSourceValue);
        else if (objSourceValue instanceof Iterator)
            objDataModel = new SimpleListTableDataModel((Iterator) objSourceValue);

        if (objDataModel == null)
            throw new ApplicationRuntimeException(TableMessages.invalidTableSource(
                    this,
                    objSourceValue));
View Full Code Here

                    objState);

        // otherwise, the source parameter must contain the data to be displayed
        ITableDataModel objDataModel = null;
        if (objSourceValue instanceof Object[])
            objDataModel = new SimpleListTableDataModel((Object[]) objSourceValue);
        else if (objSourceValue instanceof List)
            objDataModel = new SimpleListTableDataModel((List) objSourceValue);
        else if (objSourceValue instanceof Collection)
            objDataModel = new SimpleListTableDataModel((Collection) objSourceValue);
        else if (objSourceValue instanceof Iterator)
            objDataModel = new SimpleListTableDataModel((Iterator) objSourceValue);

        if (objDataModel == null)
            throw new ApplicationRuntimeException(TableMessages.invalidTableSource(
                    this,
                    objSourceValue));
View Full Code Here

   */
  protected void initTableSessionStateManager()
  {
    // Use the simple data model using the array of standard Locales
    ITableDataModel objDataModel =
      new SimpleListTableDataModel(Locale.getAvailableLocales());

    // This is a simple to use column model that uses OGNL to access
    // the data to be displayed in each column. The first string is
    // the name of the column, and the second is the OGNL expression.
    // We also enable sorting for all columns by setting the second argument to true
View Full Code Here

   */
  protected void initTableSessionStateManager()
  {
    // Use the simple data model using the array of standard Locales
    ITableDataModel objDataModel =
      new SimpleListTableDataModel(Locale.getAvailableLocales());

    // This is a simple to use column model that uses OGNL to access
    // the data to be displayed in each column. The first string is
    // the name of the column, and the second is the OGNL expression.
    // We also enable sorting for all columns by setting the second argument to true
View Full Code Here

                    objState);

        // otherwise, the source parameter must contain the data to be displayed
        ITableDataModel objDataModel = null;
        if (objSourceValue instanceof Object[])
            objDataModel = new SimpleListTableDataModel((Object[]) objSourceValue);
        else if (objSourceValue instanceof List)
            objDataModel = new SimpleListTableDataModel((List) objSourceValue);
        else if (objSourceValue instanceof Collection)
            objDataModel = new SimpleListTableDataModel((Collection) objSourceValue);
        else if (objSourceValue instanceof Iterator)
            objDataModel = new SimpleListTableDataModel((Iterator) objSourceValue);

        if (objDataModel == null)
            throw new ApplicationRuntimeException(TableMessages.invalidTableSource(
                    this,
                    objSourceValue));
View Full Code Here

TOP

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

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.