[Schmitzm-commits] r66 - in trunk/src/schmitzm/swing: . table

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Apr 19 22:38:56 CEST 2009


Author: mojays
Date: 2009-04-19 22:38:56 +0200 (Sun, 19 Apr 2009)
New Revision: 66

Modified:
   trunk/src/schmitzm/swing/SortedJTable.java
   trunk/src/schmitzm/swing/table/SelectionTableModel.java
Log:
java doc updates

Modified: trunk/src/schmitzm/swing/SortedJTable.java
===================================================================
--- trunk/src/schmitzm/swing/SortedJTable.java	2009-04-19 18:57:41 UTC (rev 65)
+++ trunk/src/schmitzm/swing/SortedJTable.java	2009-04-19 20:38:56 UTC (rev 66)
@@ -19,15 +19,17 @@
 
 /**
  * Extends the {@link JTable} with automatic sort functionality.
- * This class redefines the following methods so that manually calling
+ * This class adds the following methods so that manually calling
  * {@link JTable#convertRowIndexToModel(int)} and {@link JTable#convertRowIndexToView(int)}
  * is not necessary:
  * <ul>
- *   <li>{@link #getEditingRow()}</li>
- *   <li>{@link #getSelectedRow()}</li>
- *   <li>{@link #getSelectedRows()}</li>
- *   <li>{@link #addRowSelectionInterval(int, int)}</li>
- *   <li>{@link #setRowSelectionInterval(int, int)}</li>
+ *   <li>{@link #getEditingModelRow()}</li>
+ *   <li>{@link #getSelectedModelRow()}</li>
+ *   <li>{@link #getSelectedModelRows()}</li>
+ *   <li>{@link #addModelRowSelectionInterval(int, int)}</li>
+ *   <li>{@link #setModelRowSelectionInterval(int, int)}</li>
+ *   <li>{@link #removeRowSelectionInterval(int, int)}</li>
+ *   <li>{@link #changeModelSelection(int, int, boolean, boolean)}</li>
  * </ul>   
  * @author <a href="mailto:martin.schmitz at koeln.de">Martin Schmitz</a> (University of Bonn/Germany)
  */
@@ -132,7 +134,7 @@
    * @param toggle see {@link #changeSelection(int, int, boolean, boolean)}
    * @param extend see {@link #changeSelection(int, int, boolean, boolean)}
    */
-  public void changeSelectionModel(int row, int col, boolean toggle, boolean extend) {
+  public void changeModelSelection(int row, int col, boolean toggle, boolean extend) {
     row = convertRowIndexToView(row);
     changeSelection(row, col, toggle, extend);
   }
@@ -176,5 +178,10 @@
       removeRowSelectionInterval(viewIdx, viewIdx);
     }
   }
+  
+//  @Override
+//  public void clearSelection() {
+//    super.clearSelection();
+//  }
 
 }

Modified: trunk/src/schmitzm/swing/table/SelectionTableModel.java
===================================================================
--- trunk/src/schmitzm/swing/table/SelectionTableModel.java	2009-04-19 18:57:41 UTC (rev 65)
+++ trunk/src/schmitzm/swing/table/SelectionTableModel.java	2009-04-19 20:38:56 UTC (rev 66)
@@ -279,7 +279,7 @@
     public void keyTyped(KeyEvent e) {}
     
     /**
-     * 
+     * Does currently nothing.
      */
     @Override
     public void valueChanged(ListSelectionEvent e) {



More information about the Schmitzm-commits mailing list