changeset 4224:1365d109fccb

RT-30593: TableView.TableViewSelectionModel changes in Lombard are not back compatible with previous versions (reintroducing cleaned-up bridge methods)
author jgiles
date Wed, 10 Jul 2013 10:21:32 +1200
parents 53ab58d87489
children 22e2bb23d06b
files modules/controls/src/main/java/javafx/scene/control/TableView.java
diffstat 1 files changed, 59 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/control/TableView.java	Wed Jul 10 10:14:04 2013 +1200
+++ b/modules/controls/src/main/java/javafx/scene/control/TableView.java	Wed Jul 10 10:21:32 2013 +1200
@@ -1564,6 +1564,65 @@
 
         /***********************************************************************
          *                                                                     *
+         * Generic (type erasure) bridging                                     *
+         *                                                                     *
+         **********************************************************************/
+
+        // --- isSelected
+        /** {@inheritDoc} */
+        @Override public boolean isSelected(int row, TableColumnBase<S, ?> column) {
+            return isSelected(row, (TableColumn)column);
+        }
+
+        /**
+         * Convenience function which tests whether the given row and column index
+         * is currently selected in this table instance.
+         */
+        public abstract boolean isSelected(int row, TableColumn<S, ?> column);
+
+
+        // --- select
+        /** {@inheritDoc} */
+        @Override public void select(int row, TableColumnBase<S, ?> column) {
+            select(row, (TableColumn)column);
+        }
+
+        /**
+         * Selects the cell at the given row/column intersection.
+         */
+        public abstract void select(int row, TableColumn<S, ?> column);
+
+
+        // --- clearAndSelect
+        /** {@inheritDoc} */
+        @Override public void clearAndSelect(int row, TableColumnBase<S,?> column) {
+            clearAndSelect(row, (TableColumn) column);
+        }
+
+        /**
+         * Clears all selection, and then selects the cell at the given row/column
+         * intersection.
+         */
+        public abstract void clearAndSelect(int row, TableColumn<S,?> column);
+
+
+        // --- clearSelection
+        /** {@inheritDoc} */
+        @Override public void clearSelection(int row, TableColumnBase<S,?> column) {
+            clearSelection(row, (TableColumn) column);
+        }
+
+        /**
+         * Removes selection from the specified row/column position (in view indexes).
+         * If this particular cell (or row if the column value is -1) is not selected,
+         * nothing happens.
+         */
+        public abstract void clearSelection(int row, TableColumn<S, ?> column);
+
+
+
+        /***********************************************************************
+         *                                                                     *
          * Public API                                                          *
          *                                                                     *
          **********************************************************************/