Revision: 1290
Author:   mathiasbr
Date:     2006-08-08 14:47:56 -0700 (Tue, 08 Aug 2006)
ViewCVS:  http://svn.sourceforge.net/spring-rich-c/?rev=1290&view=rev

Log Message:
-----------
javadocs

Modified Paths:
--------------
    
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/table/TableUtils.java
Modified: 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/table/TableUtils.java
===================================================================
--- 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/table/TableUtils.java
  2006-08-08 21:42:53 UTC (rev 1289)
+++ 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/table/TableUtils.java
  2006-08-08 21:47:56 UTC (rev 1290)
@@ -127,10 +127,25 @@
                return getUnfilteredTableModel(table.getModel());
        }
 
+    /**
+     * resizes the column widths to optimally fit the row data.
+     * <p>
+     * this method only tests the first row (if it exists) 
+     * @param table the table whose columns should be resized, not null
+     */
     public static void sizeColumnsToFitRowData(JTable table) {
         sizeColumnsToFitRowData(table, 1);
     }
 
+    /**
+     * resizes the column widths to optimally fit the row data.
+     * 
+     * @param table
+     *            the table whose columns should be resized, not null
+     * @param maxNumberOfRows
+     *            specifies the maximum number of rows to evaluate the column 
widths. If it is lower or equals 0 all rows
+     *            will be evaluated
+     */
     public static void sizeColumnsToFitRowData(JTable table, int 
maxNumberOfRows) {
                if (table.getRowCount() > 0) {
             int rowSize = maxNumberOfRows <= 0 ? table.getRowCount() : Math


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
spring-rich-c-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to