Package org.apache.tapestry.util

Examples of org.apache.tapestry.util.ComponentAddress


        return new Object[] { objAddress, new Integer(getCurrentPage() - 1)};
    }

    public Object[] getFwdPageContext()
    {
        ComponentAddress objAddress = new ComponentAddress(getTableModelSource());
        return new Object[] { objAddress, new Integer(getCurrentPage() + 1)};
    }
View Full Code Here


        return new Object[] { objAddress, new Integer(getCurrentPage() + 1)};
    }

    public Object[] getDisplayPageContext()
    {
        ComponentAddress objAddress = new ComponentAddress(getTableModelSource());
        return new Object[] { objAddress, new Integer(m_nDisplayPage)};
    }
View Full Code Here

        {
            // 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

    {
      synchronized (this)
      {
        if (m_objComponentRenderer == null)
        {
          ComponentAddress objAddress =
            new ComponentAddress(
              objSource.getNamespace(),
              "SimpleTableColumnPage",
              "tableColumnComponent");
          m_objComponentRenderer =
            new ComponentTableRendererSource(objAddress);
View Full Code Here

    {
      synchronized (this)
      {
        if (m_objComponentRenderer == null)
        {
          ComponentAddress objAddress =
            new ComponentAddress(
              objSource.getNamespace(),
              "SimpleTableColumnPage",
              "tableColumnFormComponent");
          m_objComponentRenderer =
            new ComponentTableRendererSource(objAddress);
View Full Code Here

  }

  public Object[] getColumnSelectedParameters()
  {
    return new Object[] {
      new ComponentAddress(m_objModelSource),
      m_objColumn.getColumnName()};
  }
View Full Code Here

  }

  public void columnSelected(IRequestCycle objCycle)
  {
    Object[] arrArgs = objCycle.getListenerParameters();
    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());
View Full Code Here

        return objImageAsset;
    }

    public Object[] getColumnSelectedParameters()
    {
        return new Object[] { new ComponentAddress(m_objModelSource),
                m_objColumn.getColumnName() };
    }
View Full Code Here

    }

    public void columnSelected(IRequestCycle objCycle)
    {
        Object[] arrArgs = objCycle.getListenerParameters();
        ComponentAddress objAddr = (ComponentAddress) arrArgs[0];
        String strColumnName = (String) arrArgs[1];

        ITableModelSource objSource = (ITableModelSource) objAddr
                .findComponent(objCycle);
        objSource.storeTableAction(new TableActionColumnSort(strColumnName));
    }
View Full Code Here

        attempt(BeanLifecycle.PAGE, "Eorg.apache.tapestry.spec.BeanLifecycle@PAGE");
    }

    public void testComponentAddress() throws IOException
    {
        ComponentAddress objAddress = new ComponentAddress("framework:DirectLink",
                "component.subcomponent");
        attempt(objAddress, "Aframework:DirectLink,component.subcomponent");

        objAddress = new ComponentAddress("framework:DirectLink", null);
        attempt(objAddress, "Aframework:DirectLink,");
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.util.ComponentAddress

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.