Package org.apache.tapestry.util

Examples of org.apache.tapestry.util.ComponentAddress


        return m_objTreeSessionStateManager;
    }

    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

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

                                          getPage().getRequestCycle());
    }

    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()) {
            LOG.debug("getNodeContext objValueUID = " + objValueUID);
View Full Code Here

        Object context[] = cycle.getServiceParameters();
        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);

        if (bState) {
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

        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

  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

    IRequestCycle objCycle,
    ITableModelSource objSource,
    ITableColumn objColumn,
    Object objRow)
  {
    ComponentAddress objListenerAddress = getListenerAddress();
    if (objListenerAddress != null)
    {
      ITableRendererListener objListener =
        (ITableRendererListener) objListenerAddress.findComponent(
          objCycle);
      objListener.initializeRenderer(
        objCycle,
        objSource,
        objColumn,
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.