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

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

*** 23,32 **** --- 23,33 ---- * questions. */ package javafx.scene.control; + import com.sun.javafx.scene.control.Properties; import javafx.css.CssMetaData; import java.util.Collections; import java.util.List; import java.util.Map; import javafx.beans.property.ObjectProperty;
*** 44,54 **** import javafx.event.EventTarget; import javafx.event.EventType; import javafx.scene.Node; import javafx.util.Callback; import javafx.css.Styleable; ! import com.sun.javafx.scene.control.skin.TableViewSkinBase; /** * A {@link TreeTableView} is made up of a number of TreeTableColumn instances. Each * TreeTableColumn in a {@link TreeTableView} is responsible for displaying * (and editing) the contents of that column. As well as being responsible for * displaying and editing data for a single column, a TreeTableColumn also --- 45,55 ---- import javafx.event.EventTarget; import javafx.event.EventType; import javafx.scene.Node; import javafx.util.Callback; import javafx.css.Styleable; ! import javafx.scene.control.skin.TableViewSkinBase; /** * A {@link TreeTableView} is made up of a number of TreeTableColumn instances. Each * TreeTableColumn in a {@link TreeTableView} is responsible for displaying * (and editing) the contents of that column. As well as being responsible for * displaying and editing data for a single column, a TreeTableColumn also
*** 409,422 **** this, "cellFactory", (Callback<TreeTableColumn<S,T>, TreeTableCell<S,T>>) ((Callback) DEFAULT_CELL_FACTORY)) { @Override protected void invalidated() { TreeTableView<S> table = getTreeTableView(); if (table == null) return; Map<Object,Object> properties = table.getProperties(); ! if (properties.containsKey(TableViewSkinBase.RECREATE)) { ! properties.remove(TableViewSkinBase.RECREATE); } ! properties.put(TableViewSkinBase.RECREATE, Boolean.TRUE); } }; public final void setCellFactory(Callback<TreeTableColumn<S,T>, TreeTableCell<S,T>> value) { cellFactory.set(value); } --- 410,423 ---- this, "cellFactory", (Callback<TreeTableColumn<S,T>, TreeTableCell<S,T>>) ((Callback) DEFAULT_CELL_FACTORY)) { @Override protected void invalidated() { TreeTableView<S> table = getTreeTableView(); if (table == null) return; Map<Object,Object> properties = table.getProperties(); ! if (properties.containsKey(Properties.RECREATE)) { ! properties.remove(Properties.RECREATE); } ! properties.put(Properties.RECREATE, Boolean.TRUE); } }; public final void setCellFactory(Callback<TreeTableColumn<S,T>, TreeTableCell<S,T>> value) { cellFactory.set(value); }