changeset 1266:388637d028f3

Reinstating a commented out public method on TableColumn that was commented out by mistake in a previous changeset. Unit tests failed because of this, and now pass again.
author jgiles
date Tue, 12 Jun 2012 15:17:17 +1200
parents cc8d7f8bbab8
children a636b9ba88ac
files javafx-ui-controls/src/javafx/scene/control/TableColumn.java
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/javafx/scene/control/TableColumn.java	Tue Jun 12 09:44:39 2012 +1200
+++ b/javafx-ui-controls/src/javafx/scene/control/TableColumn.java	Tue Jun 12 15:17:17 2012 +1200
@@ -1097,18 +1097,18 @@
         return columns;
     }
     
-//    /**
-//     * Returns the actual value for a cell at a given row index (and which 
-//     * belongs to this TableColumn).
-//     * 
-//     * @param index The row index for which the data is required.
-//     * @return The data that belongs to the cell at the intersection of the given
-//     *      row index and the TableColumn that this method is called on.
-//     */
-//    public final T getCellData(final int index) {
-//        ObservableValue<T> result = getCellObservableValue(index);
-//        return result == null ? null : result.getValue();
-//    }
+    /**
+     * Returns the actual value for a cell at a given row index (and which 
+     * belongs to this TableColumn).
+     * 
+     * @param index The row index for which the data is required.
+     * @return The data that belongs to the cell at the intersection of the given
+     *      row index and the TableColumn that this method is called on.
+     */
+    public final T getCellData(final int index) {
+        ObservableValue<T> result = getCellObservableValue(index);
+        return result == null ? null : result.getValue();
+    }
 
     /**
      * Returns the actual value for a cell from the given item.