< prev index next >

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

Print this page




 234     private InvalidationListener itemsChangeListener;
 235 
 236     private WeakListChangeListener<S> weakRowCountListener =
 237             new WeakListChangeListener<>(rowCountListener);
 238     private WeakListChangeListener<TC> weakVisibleLeafColumnsListener =
 239             new WeakListChangeListener<>(visibleLeafColumnsListener);
 240     private WeakInvalidationListener weakWidthListener =
 241             new WeakInvalidationListener(widthListener);
 242     private WeakInvalidationListener weakItemsChangeListener;
 243 
 244 
 245 
 246     /***************************************************************************
 247      *                                                                         *
 248      * Constructors                                                            *
 249      *                                                                         *
 250      **************************************************************************/
 251 
 252     /**
 253      *
 254      * @param control
 255      */
 256     public TableViewSkinBase(final C control) {
 257         super(control);
 258 
 259         // init the VirtualFlow
 260         flow = getVirtualFlow();
 261         flow.setPannable(IS_PANNABLE);
 262 //        flow.setCellFactory(flow1 -> TableViewSkinBase.this.createCell());
 263 
 264         /*
 265          * Listening for scrolling along the X axis, but we need to be careful
 266          * to handle the situation appropriately when the hbar is invisible.
 267          */
 268         flow.getHbar().valueProperty().addListener(o -> horizontalScroll());
 269 
 270         // RT-37152
 271         flow.getHbar().setUnitIncrement(15);
 272         flow.getHbar().setBlockIncrement(TableColumnHeader.DEFAULT_COLUMN_WIDTH);
 273 
 274         columnReorderLine = new Region();




 234     private InvalidationListener itemsChangeListener;
 235 
 236     private WeakListChangeListener<S> weakRowCountListener =
 237             new WeakListChangeListener<>(rowCountListener);
 238     private WeakListChangeListener<TC> weakVisibleLeafColumnsListener =
 239             new WeakListChangeListener<>(visibleLeafColumnsListener);
 240     private WeakInvalidationListener weakWidthListener =
 241             new WeakInvalidationListener(widthListener);
 242     private WeakInvalidationListener weakItemsChangeListener;
 243 
 244 
 245 
 246     /***************************************************************************
 247      *                                                                         *
 248      * Constructors                                                            *
 249      *                                                                         *
 250      **************************************************************************/
 251 
 252     /**
 253      *
 254      * @param control the control
 255      */
 256     public TableViewSkinBase(final C control) {
 257         super(control);
 258 
 259         // init the VirtualFlow
 260         flow = getVirtualFlow();
 261         flow.setPannable(IS_PANNABLE);
 262 //        flow.setCellFactory(flow1 -> TableViewSkinBase.this.createCell());
 263 
 264         /*
 265          * Listening for scrolling along the X axis, but we need to be careful
 266          * to handle the situation appropriately when the hbar is invisible.
 267          */
 268         flow.getHbar().valueProperty().addListener(o -> horizontalScroll());
 269 
 270         // RT-37152
 271         flow.getHbar().setUnitIncrement(15);
 272         flow.getHbar().setBlockIncrement(TableColumnHeader.DEFAULT_COLUMN_WIDTH);
 273 
 274         columnReorderLine = new Region();


< prev index next >