Package org.apache.tapestry.util

Examples of org.apache.tapestry.util.ComponentAddress


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


    private static final String PREFIX = "A";
    private static final char SEPARATOR = '/';
   
    public String squeeze(DataSqueezer squeezer, Object data) throws IOException
    {try { __CLOVER_413_0.M[2233]++;
        __CLOVER_413_0.S[9241]++;ComponentAddress address = (ComponentAddress) data;

        // a 'null' id path is encoded as an empty string
        __CLOVER_413_0.S[9242]++;String idPath = address.getIdPath();
        __CLOVER_413_0.S[9243]++;if ((((idPath == null) && (++__CLOVER_413_0.CT[1569] != 0)) || (++__CLOVER_413_0.CF[1569] == 0))){
          __CLOVER_413_0.S[9244]++;idPath = "";}

        __CLOVER_413_0.S[9245]++;return PREFIX + address.getPageName() + SEPARATOR + idPath;
    } finally { }}
View Full Code Here

        __CLOVER_413_0.S[9249]++;String pageName = string.substring(1, separator);
        __CLOVER_413_0.S[9250]++;String idPath = string.substring(separator + 1);
        __CLOVER_413_0.S[9251]++;if ((((idPath.equals("")) && (++__CLOVER_413_0.CT[1571] != 0)) || (++__CLOVER_413_0.CF[1571] == 0))){
          __CLOVER_413_0.S[9252]++;idPath = null;}

        __CLOVER_413_0.S[9253]++;return new ComponentAddress(pageName, idPath);
    } finally { }}
View Full Code Here

        attempt("So long, sucker!", "SSo long, sucker!");
    }

    public void testComponentAddress()
    {
        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

  }

  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.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());
View Full Code Here

        return arrPages;
    }

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

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

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

        return new Object[] { objAddress, new Integer(getPageCount())};
    }

    public Object[] getBackPageContext()
    {
        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[] getFwdPageContext()
    {
        ComponentAddress objAddress = new ComponentAddress(getTableModelSource());
        return new Object[] { objAddress, new Integer(getCurrentPage() + 1)};
    }
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.