Examples of ITableModelSource


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

{
    public ITableModelSource getTableModelSource()
    {
        IRequestCycle objCycle = getPage().getRequestCycle();

        ITableModelSource objSource =
            (ITableModelSource) objCycle.getAttribute(
                ITableModelSource.TABLE_MODEL_SOURCE_ATTRIBUTE);

        if (objSource == null)
            throw new ApplicationRuntimeException(
View Full Code Here

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

  {
    Object[] arrArgs = objCycle.getServiceParameters();
    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,
        ITableSortingState.SORT_ASCENDING);

    // ensure that the change is saved
    objSource.fireObservedStateChange();
  }
View Full Code Here

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

    }

    // This would ideally be a delayed invocation -- called after the form rewind
    public void changePage(IRequestCycle objCycle)
    {
        ITableModelSource objSource = getTableModelSource();
        setCurrentPage(objSource, getSelectedPage());

        // ensure that the change is saved
        objSource.fireObservedStateChange();
    }
View Full Code Here

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

            // error
            return;
        }

        ComponentAddress objAddress = (ComponentAddress) arrParameters[0];
        ITableModelSource objSource = (ITableModelSource) objAddress.findComponent(objCycle);
        setCurrentPage(objSource, ((Integer) arrParameters[1]).intValue());

        // ensure that the change is saved
        objSource.fireObservedStateChange();
    }
View Full Code Here

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

    }

    // This would ideally be a delayed invocation -- called after the form rewind
    public void changePage(IRequestCycle objCycle)
    {
        ITableModelSource objSource = getTableModelSource();
        objSource.storeTableAction(new TableActionPageChange(getSelectedPage()));
    }
View Full Code Here

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

            // error
            return;
        }

        ComponentAddress objAddress = (ComponentAddress)arrParameters[0];
        ITableModelSource objSource = (ITableModelSource)objAddress.findComponent(objCycle);
        int page = ((Integer)arrParameters[1]).intValue();
       
        objSource.storeTableAction(new TableActionPageChange(page));
    }
View Full Code Here

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

{
    public ITableModelSource getTableModelSource()
    {
        IRequestCycle objCycle = getPage().getRequestCycle();

        ITableModelSource objSource =
            (ITableModelSource) objCycle.getAttribute(
                ITableModelSource.TABLE_MODEL_SOURCE_ATTRIBUTE);

        if (objSource == null)
            throw new ApplicationRuntimeException(
View Full Code Here

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

    }

    // This would ideally be a delayed invocation -- called after the form rewind
    public void changePage(IRequestCycle objCycle)
    {
        ITableModelSource objSource = getTableModelSource();
        setCurrentPage(objSource, getSelectedPage());

        // ensure that the change is saved
        objSource.fireObservedStateChange();
    }
View Full Code Here

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

            // error
            return;
        }

        ComponentAddress objAddress = (ComponentAddress) arrParameters[0];
        ITableModelSource objSource = (ITableModelSource) objAddress.findComponent(objCycle);
        setCurrentPage(objSource, ((Integer) arrParameters[1]).intValue());

        // ensure that the change is saved
        objSource.fireObservedStateChange();
    }
View Full Code Here

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

    }

    public void columnSelected(IRequestCycle objCycle)
    {
        String strColumnName = getSelectedColumnName();
        ITableModelSource objSource = getTableModelSource();
        objSource.storeTableAction(new TableActionColumnSort(strColumnName));
    }
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.