Package org.apache.tapestry.util

Examples of org.apache.tapestry.util.ComponentAddress


    }

    public Object[] getNodeContext()
    {
        ITreeModelSource objModelSource = getTreeModelSource();
        ComponentAddress objModelSourceAddress = new ComponentAddress(objModelSource);
        ITreeRowSource objTreeRowSource = getTreeRowSource();
        TreeRowObject objTreeRowObject = objTreeRowSource.getTreeRow();
        Object objValueUID = objTreeRowObject.getTreeNodeUID();
        if (LOG.isDebugEnabled())
        {
View Full Code Here


        Object objValueUID = null;
        if (context != null && context.length > 0)
        {
            objValueUID = context[0];
        }
        ComponentAddress objModelSourceAddress = (ComponentAddress) context[2];
        ITreeModelSource objTreeModelSource = (ITreeModelSource) objModelSourceAddress
                .findComponent(cycle);
        //ITreeModelSource objTreeModelSource = getTreeModelSource();
        ITreeStateModel objStateModel = objTreeModelSource.getTreeModel().getTreeStateModel();
        boolean bState = objStateModel.isUniqueKeyExpanded(objValueUID);
View Full Code Here

        Object objValueUID = null;
        if (context != null && context.length > 0)
        {
            objValueUID = context[0];
        }
        ComponentAddress objModelSourceAddress = (ComponentAddress) context[2];
        ITreeModelSource objTreeModelSource = (ITreeModelSource) objModelSourceAddress
                .findComponent(cycle);
        //ITreeModelSource objTreeModelSource = getTreeModelSource();
        ITreeStateModel objStateModel = objTreeModelSource.getTreeModel().getTreeStateModel();
        Object objSelectedNodeInState = objStateModel.getSelectedNode();
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

        m_objColumn = objColumn;
    }

    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

    private static final String PREFIX = "A";
    private static final char SEPARATOR = '/';
   
    public String squeeze(DataSqueezer squeezer, Object data) throws IOException
    {
        ComponentAddress address = (ComponentAddress) data;

        // a 'null' id path is encoded as an empty string
        String idPath = address.getIdPath();
        if (idPath == null)
          idPath = "";

        return PREFIX + address.getPageName() + SEPARATOR + idPath;
    }
View Full Code Here

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

    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

{
  private ComponentAddress m_objComponentAddress;

  public ComponentTableRendererSource(ITableRendererListener objComponent)
  {
    this(new ComponentAddress(objComponent));
  }
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

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.