modules/controls/src/main/java/javafx/scene/control/TableCell.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization


  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javafx.scene.control;
  27 
  28 import javafx.css.PseudoClass;
  29 import javafx.beans.InvalidationListener;
  30 import javafx.beans.WeakInvalidationListener;
  31 import javafx.beans.value.ObservableValue;
  32 import javafx.collections.ListChangeListener;
  33 import javafx.event.Event;
  34 import javafx.scene.AccessibleAction;
  35 import javafx.scene.AccessibleAttribute;
  36 import javafx.scene.AccessibleRole;
  37 import javafx.scene.control.TableView.TableViewFocusModel;
  38 
  39 import com.sun.javafx.scene.control.skin.TableCellSkin;
  40 import javafx.collections.WeakListChangeListener;
  41 import java.lang.ref.WeakReference;
  42 import java.util.List;
  43 import javafx.beans.property.ReadOnlyObjectProperty;
  44 import javafx.beans.property.ReadOnlyObjectWrapper;
  45 import javafx.collections.FXCollections;
  46 
  47 import javafx.scene.control.TableColumn.CellEditEvent;
  48 
  49 
  50 /**
  51  * Represents a single row/column intersection in a {@link TableView}. To 
  52  * represent this intersection, a TableCell contains an 
  53  * {@link #indexProperty() index} property, as well as a 
  54  * {@link #tableColumnProperty() tableColumn} property. In addition, a TableCell
  55  * instance knows what {@link TableRow} it exists in.
  56  *
  57  * <p><strong>A note about selection:</strong> A TableCell visually shows it is
  58  * selected when two conditions are met:
  59  * <ol>




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javafx.scene.control;
  27 
  28 import javafx.css.PseudoClass;
  29 import javafx.beans.InvalidationListener;
  30 import javafx.beans.WeakInvalidationListener;
  31 import javafx.beans.value.ObservableValue;
  32 import javafx.collections.ListChangeListener;
  33 import javafx.event.Event;
  34 import javafx.scene.AccessibleAction;
  35 import javafx.scene.AccessibleAttribute;
  36 import javafx.scene.AccessibleRole;
  37 import javafx.scene.control.TableView.TableViewFocusModel;
  38 
  39 import javafx.scene.control.skin.TableCellSkin;
  40 import javafx.collections.WeakListChangeListener;
  41 import java.lang.ref.WeakReference;
  42 import java.util.List;
  43 import javafx.beans.property.ReadOnlyObjectProperty;
  44 import javafx.beans.property.ReadOnlyObjectWrapper;
  45 import javafx.collections.FXCollections;
  46 
  47 import javafx.scene.control.TableColumn.CellEditEvent;
  48 
  49 
  50 /**
  51  * Represents a single row/column intersection in a {@link TableView}. To 
  52  * represent this intersection, a TableCell contains an 
  53  * {@link #indexProperty() index} property, as well as a 
  54  * {@link #tableColumnProperty() tableColumn} property. In addition, a TableCell
  55  * instance knows what {@link TableRow} it exists in.
  56  *
  57  * <p><strong>A note about selection:</strong> A TableCell visually shows it is
  58  * selected when two conditions are met:
  59  * <ol>