CVS: Tapestry/contrib/src/net/sf/tapestry/contrib/table/components Table.jwc,1.5,1.6 TableColumns.java,1.6,1.7 TableColumns.jwc,1.5,1.6 TableRows.java,1.7,1.8 TableRows.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-serv6509/contrib/src/net/sf/tapestry/contrib/table/components

Modified Files:
	Table.jwc TableColumns.java TableColumns.jwc TableRows.java 
	TableRows.jwc 
Log Message:


Index: Table.jwc
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/contrib/src/net/sf/tapestry/contrib/table/components/Table.jwc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Table.jwc	19 Nov 2002 07:32:40 -0000	1.5
--- Table.jwc	23 Dec 2002 12:40:27 -0000	1.6
***************
*** 31,34 ****
--- 31,44 ----
  		direction="custom"/>
    
+ 	<parameter name="column" 
+ 		java-type="net.sf.tapestry.contrib.table.model.ITableColumn" 
+ 		required="no"
+ 		direction="custom"/>
+ 
+ 	<parameter name="row" 
+ 		java-type="Object" 
+ 		required="no"
+ 		direction="custom"/>
+ 
  	<parameter name="arrowUpAsset" 
  		java-type="net.sf.tapestry.IAsset" 
***************
*** 84,91 ****
--- 94,103 ----
  
  	<component id="tableColumns" type="TableColumns">
+ 		<inherited-binding name="column" parameter-name="column"/>
  		<inherited-binding name="class" parameter-name="columnsClass"/>
  	</component>
  
  	<component id="tableRows" type="TableRows">
+ 		<inherited-binding name="row" parameter-name="row"/>
  		<inherited-binding name="class" parameter-name="rowsClass"/>
  	</component>

Index: TableColumns.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/contrib/src/net/sf/tapestry/contrib/table/components/TableColumns.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** TableColumns.java	27 Nov 2002 17:58:53 -0000	1.6
--- TableColumns.java	23 Dec 2002 12:40:27 -0000	1.7
***************
*** 38,41 ****
--- 38,50 ----
   *
   * <tr>
+  *  <td>column</td>
+  *  <td>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>
+  *
+  * <tr>
   *  <td>element</td>
   *  <td>String</td>
***************
*** 79,82 ****
--- 88,92 ----
      
      // Bindings (custom)
+     private IBinding m_objColumnBinding = null;
      private IBinding m_objElementBinding = null;
  
***************
*** 138,141 ****
--- 148,155 ----
  	{
  		m_objTableColumn = tableColumn;
+ 
+         IBinding objColumnBinding = getColumnBinding();
+         if (objColumnBinding != null)
+             objColumnBinding.setObject(tableColumn);
  	}
  
***************
*** 146,149 ****
--- 160,181 ----
  			getTableModelSource());
  	}
+ 
+     /**
+      * Returns the valueBinding.
+      * @return IBinding
+      */
+     public IBinding getColumnBinding()
+     {
+         return m_objColumnBinding;
+     }
+ 
+     /**
+      * Sets the valueBinding.
+      * @param valueBinding The valueBinding to set
+      */
+     public void setColumnBinding(IBinding valueBinding)
+     {
+         m_objColumnBinding = valueBinding;
+     }
  
      /**

Index: TableColumns.jwc
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/contrib/src/net/sf/tapestry/contrib/table/components/TableColumns.jwc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TableColumns.jwc	19 Nov 2002 07:32:40 -0000	1.5
--- TableColumns.jwc	23 Dec 2002 12:40:27 -0000	1.6
***************
*** 11,14 ****
--- 11,19 ----
  	</description>
    
+ 	<parameter name="column" 
+ 		java-type="net.sf.tapestry.contrib.table.model.ITableColumn" 
+ 		required="no"
+ 		direction="custom"/>
+ 
  	<parameter name="element" 
  		java-type="java.lang.String" 

Index: TableRows.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/contrib/src/net/sf/tapestry/contrib/table/components/TableRows.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TableRows.java	27 Nov 2002 17:58:53 -0000	1.7
--- TableRows.java	23 Dec 2002 12:40:27 -0000	1.8
***************
*** 34,38 ****
   *
   * <tr>
!  *  <td>value</td>
   *  <td>Object</td>
   *  <td>out</td>
--- 34,38 ----
   *
   * <tr>
!  *  <td>row</td>
   *  <td>Object</td>
   *  <td>out</td>
***************
*** 61,64 ****
--- 61,65 ----
      // Binding
      private IBinding m_objElementBinding = null;
+     private IBinding m_objRowBinding = null;
      private IBinding m_objValueBinding = null;
  
***************
*** 90,97 ****
--- 91,120 ----
  		m_objTableRow = tableRow;
          
+         IBinding objRowBinding = getRowBinding();
+         if (objRowBinding != null)
+             objRowBinding.setObject(tableRow);
+ 
          IBinding objValueBinding = getValueBinding();
          if (objValueBinding != null)
              objValueBinding.setObject(tableRow);
  	}
+ 
+     /**
+      * Returns the valueBinding.
+      * @return IBinding
+      */
+     public IBinding getRowBinding()
+     {
+         return m_objRowBinding;
+     }
+ 
+     /**
+      * Sets the valueBinding.
+      * @param valueBinding The valueBinding to set
+      */
+     public void setRowBinding(IBinding valueBinding)
+     {
+         m_objRowBinding = valueBinding;
+     }
  
      /**

Index: TableRows.jwc
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/contrib/src/net/sf/tapestry/contrib/table/components/TableRows.jwc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TableRows.jwc	19 Nov 2002 07:32:40 -0000	1.5
--- TableRows.jwc	23 Dec 2002 12:40:28 -0000	1.6
***************
*** 11,14 ****
--- 11,19 ----
  	</description>
    
+ 	<parameter name="row" 
+ 		java-type="Object" 
+ 		required="no"
+ 		direction="custom"/>
+ 
  	<parameter name="value" 
  		java-type="Object" 



-------------------------------------------------------
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.