Examples of ITreeRowSource


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

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

     * @return IAsset
     */
    public IAsset getNodeImage()
    {
        IAsset objResult = null;
        ITreeRowSource objRowSource = getTreeRowSource();
        boolean bLeaf = objRowSource.getTreeRow().getLeaf();
        int nRowType = objRowSource.getTreeRow().getTreeRowPossiotionType();
        if (!bLeaf)
        {
            if (isNodeOpen())
            {
                switch (nRowType)
View Full Code Here

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

    }

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

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

        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))
        {
View Full Code Here

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

        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()
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

        return objSource;
    }

    public boolean getShowConnectImage()
    {
        ITreeRowSource objRowSource = getTreeRowSource();
        int nRowType = objRowSource.getTreeRow().getTreeRowPossiotionType();
        if (TreeRowObject.MIDDLE_ROW == nRowType)
            return true;
        return false;
    }
View Full Code Here

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

        return false;
    }

    public int[] getForeachConnectImageList()
    {
        ITreeRowSource objTreeRowSource = getTreeRowSource();
        TreeRowObject objTreeRowObject = objTreeRowSource.getTreeRow();
        return objTreeRowObject.getLineConnImages();
    }
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.