Examples of ITreeRowSource


Examples of org.apache.tapestry.contrib.tree.model.ITreeRowSource

        m_objMakeNodeDirect = null;
    }

    public IRender getCurrentRenderer(){
        INodeRenderFactory objRenderFactory = getNodeRenderFactory();
    ITreeRowSource objTreeRowSource = getTreeRowSource();
        return objRenderFactory.getRender(objTreeRowSource.getTreeRow().getTreeNode(),
                                          getTreeModelSource(),
                                          getPage().getRequestCycle());
    }
View Full Code Here

Examples of org.apache.tapestry.contrib.tree.model.ITreeRowSource

    }

    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

Examples of org.apache.tapestry.contrib.tree.model.ITreeRowSource

        m_objCloseNodeImage = getAsset("_closeNodeImage");
    }

    public boolean isNodeOpen() {
        if(m_objNodeState == null){
      ITreeRowSource objTreeRowSource = getTreeRowSource();
      TreeRowObject objTreeRowObject = objTreeRowSource.getTreeRow();
            Object objValueUID = objTreeRowObject.getTreeNodeUID();
      ITreeModelSource objTreeModelSource = getTreeModelSource();
            ITreeStateModel objStateModel = objTreeModelSource.getTreeModel().getTreeStateModel();
            boolean bState = objStateModel.isUniqueKeyExpanded(objValueUID);
            m_objNodeState = new Boolean(bState);
View Full Code Here

Examples of org.apache.tapestry.contrib.tree.model.ITreeRowSource

        return bResult;
    }

    public String getOffsetStyle() {
        //return "width: " + getTreeDataView().getTreeDeep() * 15;
    ITreeRowSource objTreeRowSource = getTreeRowSource();
    TreeRowObject objTreeRowObject = objTreeRowSource.getTreeRow();
        int nTreeRowDepth = 0;
        if(objTreeRowObject != null){
      nTreeRowDepth = objTreeRowObject.getTreeRowDepth();
        }
        return "padding-left: " + nTreeRowDepth * 15+"px";
 
View Full Code Here

Examples of org.apache.tapestry.contrib.tree.model.ITreeRowSource

    public String getCleanSelectedID(){
        return getSelectedNodeID();
    }

    public String getSelectedID(){
    ITreeRowSource objTreeRowSource = getTreeRowSource();
    ITreeModelSource objTreeModelSource = getTreeModelSource();
    TreeRowObject objTreeRowObject = objTreeRowSource.getTreeRow();
        Object objNodeValueUID = objTreeRowObject.getTreeNodeUID();
        Object objSelectedNode = objTreeModelSource.getTreeModel().getTreeStateModel().getSelectedNode();
        if(objNodeValueUID.equals(objSelectedNode)) {
            return getSelectedNodeID();
        }
View Full Code Here

Examples of org.apache.tapestry.contrib.tree.model.ITreeRowSource

    //return getTreeDataView().getTreeView().getSelectedNodeID();
    return "tree"
  }
   
    public String getNodeStyleClass() {
    ITreeRowSource objTreeRowSource = getTreeRowSource();
    ITreeModelSource objTreeModelSource = getTreeModelSource();
    TreeRowObject objTreeRowObject = objTreeRowSource.getTreeRow();
    boolean bResult = false;
    if(objTreeRowObject != null){
          Object objNodeValueUID = objTreeRowObject.getTreeNodeUID();
          Object objSelectedNode = objTreeModelSource.getTreeModel().getTreeStateModel().getSelectedNode();
      bResult = objNodeValueUID.equals(objSelectedNode);
View Full Code Here

Examples of org.apache.tapestry.contrib.tree.model.ITreeRowSource

        return "notSelectedNodeViewClass";
    }
   
    public ITreeRowSource getTreeRowSource(){
    ITreeRowSource objSource = (ITreeRowSource)getPage().getRequestCycle().getAttribute(ITreeRowSource.TREE_ROW_SOURCE_ATTRIBUTE);
      return objSource;
    }
View Full Code Here

Examples of org.apache.tapestry.contrib.tree.model.ITreeRowSource

    }

    public IRender getCurrentRenderer()
    {
        INodeRenderFactory objRenderFactory = getNodeRenderFactory();
        ITreeRowSource objTreeRowSource = getTreeRowSource();
        return objRenderFactory.getRender(
                objTreeRowSource.getTreeRow().getTreeNode(),
                getTreeModelSource(),
                getPage().getRequestCycle());
    }
View Full Code Here

Examples of org.apache.tapestry.contrib.tree.model.ITreeRowSource

    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

Examples of org.apache.tapestry.contrib.tree.model.ITreeRowSource

    public boolean isNodeOpen()
    {
        if (m_objNodeState == null)
        {
            ITreeRowSource objTreeRowSource = getTreeRowSource();
            TreeRowObject objTreeRowObject = objTreeRowSource.getTreeRow();
            Object objValueUID = objTreeRowObject.getTreeNodeUID();
            ITreeModelSource objTreeModelSource = getTreeModelSource();
            ITreeStateModel objStateModel = objTreeModelSource.getTreeModel().getTreeStateModel();
            boolean bState = objStateModel.isUniqueKeyExpanded(objValueUID);
            m_objNodeState = new Boolean(bState);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.