Package org.apache.tapestry.util

Examples of org.apache.tapestry.util.ComponentAddress


    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


        String pageName = string.substring(1, separator);
        String idPath = string.substring(separator + 1);
        if (idPath.equals(""))
            idPath = null;

        return new ComponentAddress(pageName, idPath);
    }
View Full Code Here

     *      ITableModelSource, ITableColumn, Object)
     */
    public IRender getRenderer(IRequestCycle objCycle,
            ITableModelSource objSource, ITableColumn objColumn, Object objRow)
    {
        ComponentAddress objAddress = new ComponentAddress(objSource
                .getNamespace(), "SimpleTableColumnPage",
                "tableColumnFormComponent");
        ComponentTableRendererSource objComponentRenderer = new ComponentTableRendererSource(
                objAddress);

View Full Code Here

    public ComponentAddress getComponentPath()
    {
        if (m_objComponentAddress == null)
        {
            m_objComponentAddress = new ComponentAddress(this);
        }
        return m_objComponentAddress;
    }
View Full Code Here

  /**
   * @see org.apache.tapestry.contrib.tree.components.ITreeComponent#getComponentPath()
   */
  public ComponentAddress getComponentPath() {
    return new ComponentAddress(this);
  }
View Full Code Here

    }

    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

    private ComponentAddress m_objBlockAddress;
    private ComponentAddress m_objListenerAddress;

    public BlockTableRendererSource(Block objBlock)
    {
        this(new ComponentAddress(objBlock));
    }
View Full Code Here

    }

    public BlockTableRendererSource(Block objBlock,
            ITableRendererListener objListener)
    {
        this(new ComponentAddress(objBlock), new ComponentAddress(objListener));
    }
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.