CVS: Tapestry/contrib/src/net/sf/tapestry/contrib/table/components Table.jwc,1.6,1.7 TableColumns.java,1.7,1.8 TableValues.java,1.6,1.7 TableValues.jwc,1.5,1.6

Mind Bridge <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/Tapestry/contrib/src/net/sf/tapestry/contrib/table/components
In directory sc8-pr-cvs1:/tmp/cvs-serv5555/contrib/src/net/sf/tapestry/contrib/table/components

Modified Files:
	Table.jwc TableColumns.java TableValues.java TableValues.jwc 
Log Message:
improving column and row access during rendering

Index: Table.jwc
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/contrib/src/net/sf/tapestry/contrib/table/components/Table.jwc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Table.jwc	23 Dec 2002 12:40:27 -0000	1.6
--- Table.jwc	4 Jan 2003 10:39:22 -0000	1.7
***************
*** 104,107 ****
--- 104,108 ----
  
  	<component id="tableValues" type="TableValues">
+ 		<inherited-binding name="column" parameter-name="column"/>
  		<inherited-binding name="class" parameter-name="valuesClass"/>
  	</component>

Index: TableColumns.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/contrib/src/net/sf/tapestry/contrib/table/components/TableColumns.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TableColumns.java	23 Dec 2002 12:40:27 -0000	1.7
--- TableColumns.java	4 Jan 2003 10:39:22 -0000	1.8
***************
*** 39,43 ****
   * <tr>
   *  <td>column</td>
!  *  <td>net.sf.tapestry.contrib.table.model.ITableColumn</td>
   *  <td>out</td>
   *  <td>no</td>
--- 39,43 ----
   * <tr>
   *  <td>column</td>
!  *  <td>{@link net.sf.tapestry.contrib.table.model.ITableColumn}</td>
   *  <td>out</td>
   *  <td>no</td>

Index: TableValues.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/contrib/src/net/sf/tapestry/contrib/table/components/TableValues.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** TableValues.java	27 Nov 2002 17:58:53 -0000	1.6
--- TableValues.java	4 Jan 2003 10:39:22 -0000	1.7
***************
*** 40,43 ****
--- 40,52 ----
   * </tr>
   *
+  * <tr>
+  *  <td>column</td>
+  *  <td>{@link net.sf.tapestry.contrib.table.model.ITableColumn}</td>
+  *  <td>out</td>
+  *  <td>no</td>
+  *  <td>&nbsp;</td>
+  *  <td align="left">The object representing the current column.</td> 
+  * </tr>
+  *
   * </table> 
   * 
***************
*** 50,53 ****
--- 59,63 ----
      // Bindings (custom)
      private IBinding m_objElementBinding = null;
+     private IBinding m_objColumnBinding = null;
  
  	// Transient
***************
*** 77,80 ****
--- 87,94 ----
  	{
  		m_objTableColumn = tableColumn;
+         
+         IBinding objColumnBinding = getColumnBinding();
+         if (objColumnBinding != null)
+             objColumnBinding.setObject(tableColumn);
  	}
  
***************
*** 104,107 ****
--- 118,139 ----
      {
          m_objElementBinding = elementBinding;
+     }
+ 
+     /**
+      * Returns the columnBinding.
+      * @return IBinding
+      */
+     public IBinding getColumnBinding()
+     {
+         return m_objColumnBinding;
+     }
+ 
+     /**
+      * Sets the columnBinding.
+      * @param columnBinding The columnBinding to set
+      */
+     public void setColumnBinding(IBinding columnBinding)
+     {
+         m_objColumnBinding = columnBinding;
      }
  

Index: TableValues.jwc
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/contrib/src/net/sf/tapestry/contrib/table/components/TableValues.jwc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TableValues.jwc	19 Nov 2002 07:32:40 -0000	1.5
--- TableValues.jwc	4 Jan 2003 10:39:22 -0000	1.6
***************
*** 16,19 ****
--- 16,24 ----
  		direction="custom"/>
  
+ 	<parameter name="column" 
+ 		java-type="net.sf.tapestry.contrib.table.model.ITableColumn" 
+ 		required="no"
+ 		direction="custom"/>
+ 
  	<component id="iterColumns" type="Foreach">
  		<binding name="source" expression="tableColumnIterator"/>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.