tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tsvete...@apache.org
Subject cvs commit: jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/tree/components TreeDataView.java
Date Fri, 23 Jul 2004 14:55:29 GMT
tsvetelin    2004/07/23 07:55:29

  Modified:    contrib/src/org/apache/tapestry/contrib/tree/components/table
                        TreeTableDataView.java TreeTable.jwc
                        TreeTableDataView.jwc
               contrib/src/org/apache/tapestry/contrib/tree/components
                        TreeDataView.java
  Log:
  
  
  Revision  Changes    Path
  1.8       +2 -2      jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/tree/components/table/TreeTableDataView.java
  
  Index: TreeTableDataView.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/tree/components/table/TreeTableDataView.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TreeTableDataView.java	17 Jun 2004 14:39:07 -0000	1.7
  +++ TreeTableDataView.java	23 Jul 2004 14:55:29 -0000	1.8
  @@ -142,7 +142,7 @@
                   Object objChild = iter.next();
                   Object objChildUID = objTreeModel.getTreeDataModel().getUniqueKey(objChild,
objParentUID);
                   boolean bChildLast = !iter.hasNext();
  -                if(!bChildLast)
  +                if(bChildLast)
               		nRowPossiotionType = TreeRowObject.LAST_ROW;
               	else
                   	nRowPossiotionType = TreeRowObject.MIDDLE_ROW;
  
  
  
  1.4       +5 -1      jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/tree/components/table/TreeTable.jwc
  
  Index: TreeTable.jwc
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/tree/components/table/TreeTable.jwc,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TreeTable.jwc	8 Jun 2004 08:30:43 -0000	1.3
  +++ TreeTable.jwc	23 Jul 2004 14:55:29 -0000	1.4
  @@ -56,6 +56,10 @@
       <parameter name="showRootNode" type="boolean" required="no"
                  direction="custom"/>
       
  +    <parameter name="nodeRenderFactory"
  +               type="org.apache.tapestry.contrib.tree.components.INodeRenderFactory"
  +               required="no" direction="custom"/>
  +    
       <component id="treeView" type="TreeView">
           <inherited-binding name="sessionStateManager" parameter-name="sessionStateManager"/>
           <inherited-binding name="sessionStoreManager" parameter-name="sessionStoreManager"/>
  
  
  
  1.4       +9 -1      jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/tree/components/table/TreeTableDataView.jwc
  
  Index: TreeTableDataView.jwc
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/tree/components/table/TreeTableDataView.jwc,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TreeTableDataView.jwc	8 Jun 2004 08:30:43 -0000	1.3
  +++ TreeTableDataView.jwc	23 Jul 2004 14:55:29 -0000	1.4
  @@ -30,6 +30,10 @@
                  type="org.apache.tapestry.util.ComponentAddress"
                  required="no" direction="custom"/>
   
  +    <parameter name="nodeRenderFactory"
  +               type="org.apache.tapestry.contrib.tree.components.INodeRenderFactory"
  +               required="no" direction="custom"/>
  +    
   	<parameter name="entriesPerTablePage" 
   		type="int" 
   		required="no"
  @@ -48,6 +52,10 @@
   		<binding name="tableSessionStateManager" expression="tableSessionStateManager"/>
   		<binding name="row" expression="treeRowObject"/>
           <binding name="rowsClass" expression='beans.tableClass.next'/>
  +        <static-binding name="class">treetable</static-binding>
  +        <static-binding name="cellspacing">0</static-binding>
  +        <static-binding name="cellpadding">0</static-binding>
  +        <static-binding name="width">*</static-binding>
   	</component>
   
   </component-specification>
  
  
  
  1.8       +2 -2      jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/tree/components/TreeDataView.java
  
  Index: TreeDataView.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/tree/components/TreeDataView.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TreeDataView.java	17 Jun 2004 14:39:06 -0000	1.7
  +++ TreeDataView.java	23 Jul 2004 14:55:29 -0000	1.8
  @@ -104,10 +104,10 @@
       public void walkTree(Object objParent, Object objParentUID, int nDepth,
                            ITreeModel objTreeModel, IMarkupWriter writer,
                            IRequestCycle cycle, int nRowPossiotionType, int[] arrConnectImages,
boolean bLast) {
  +        m_nTreeDeep = nDepth;
       	int nNumberOfChildren = objTreeModel.getTreeDataModel().getChildCount(objParent);
       	boolean bLeaf = (nNumberOfChildren == 0) ? true : false;
   		m_objTreeRowObject = new TreeRowObject(objParent, objParentUID, nDepth, bLeaf, nRowPossiotionType,
arrConnectImages);
  -        m_nTreeDeep = nDepth;
   
           super.renderComponent(writer, cycle);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message