< prev index next >

modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableCellSkinBase.java

Print this page




  99      *                                                                         *
 100      * Listeners                                                               *
 101      *                                                                         *
 102      **************************************************************************/
 103 
 104     private InvalidationListener columnWidthListener = valueModel -> getSkinnable().requestLayout();
 105 
 106     private WeakInvalidationListener weakColumnWidthListener =
 107             new WeakInvalidationListener(columnWidthListener);
 108 
 109 
 110 
 111     /***************************************************************************
 112      *                                                                         *
 113      * Abstract Methods                                                        *
 114      *                                                                         *
 115      **************************************************************************/
 116 
 117     /**
 118      * The TableColumnBase instance that is responsible for this Cell.

 119      */
 120     public abstract ReadOnlyObjectProperty<? extends TableColumnBase<S,T>> tableColumnProperty();
 121     public final TableColumnBase<S,T> getTableColumn() {
 122         return tableColumnProperty().get();
 123     }
 124 
 125 
 126 
 127     /***************************************************************************
 128      *                                                                         *
 129      * Public Methods                                                          *
 130      *                                                                         *
 131      **************************************************************************/
 132 
 133     /** {@inheritDoc} */
 134     @Override public void dispose() {
 135         TableColumnBase<?,T> tableColumn = getTableColumn();
 136         if (tableColumn != null) {
 137             tableColumn.widthProperty().removeListener(weakColumnWidthListener);
 138         }




  99      *                                                                         *
 100      * Listeners                                                               *
 101      *                                                                         *
 102      **************************************************************************/
 103 
 104     private InvalidationListener columnWidthListener = valueModel -> getSkinnable().requestLayout();
 105 
 106     private WeakInvalidationListener weakColumnWidthListener =
 107             new WeakInvalidationListener(columnWidthListener);
 108 
 109 
 110 
 111     /***************************************************************************
 112      *                                                                         *
 113      * Abstract Methods                                                        *
 114      *                                                                         *
 115      **************************************************************************/
 116 
 117     /**
 118      * The TableColumnBase instance that is responsible for this Cell.
 119      * @return the TableColumnBase instance that is responsible for this Cell
 120      */
 121     public abstract ReadOnlyObjectProperty<? extends TableColumnBase<S,T>> tableColumnProperty();
 122     public final TableColumnBase<S,T> getTableColumn() {
 123         return tableColumnProperty().get();
 124     }
 125 
 126 
 127 
 128     /***************************************************************************
 129      *                                                                         *
 130      * Public Methods                                                          *
 131      *                                                                         *
 132      **************************************************************************/
 133 
 134     /** {@inheritDoc} */
 135     @Override public void dispose() {
 136         TableColumnBase<?,T> tableColumn = getTableColumn();
 137         if (tableColumn != null) {
 138             tableColumn.widthProperty().removeListener(weakColumnWidthListener);
 139         }


< prev index next >