modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TableRowBehaviorBase.java

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

*** 1,7 **** /* ! * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 32,42 **** import javafx.scene.control.TablePositionBase; import javafx.scene.control.TableSelectionModel; import javafx.scene.input.MouseButton; import javafx.scene.input.MouseEvent; - import java.util.Collections; import java.util.List; public abstract class TableRowBehaviorBase<T extends Cell> extends CellBehaviorBase<T> { /*************************************************************************** --- 32,41 ----
*** 44,54 **** * Constructors * * * **************************************************************************/ public TableRowBehaviorBase(T control) { ! super(control, Collections.emptyList()); } /*************************************************************************** --- 43,53 ---- * Constructors * * * **************************************************************************/ public TableRowBehaviorBase(T control) { ! super(control); } /***************************************************************************
*** 107,117 **** if (shortcutDown) { sm.select(getIndex()); } else if (shiftDown) { // we add all rows between the current focus and // this row (inclusive) to the current selection. ! TablePositionBase<?> anchor = TableCellBehavior.getAnchor(table, getFocusedCell()); final int anchorRow = anchor.getRow(); selectRows(anchorRow, index); } else { simpleSelect(button, clickCount, shortcutDown); } --- 106,116 ---- if (shortcutDown) { sm.select(getIndex()); } else if (shiftDown) { // we add all rows between the current focus and // this row (inclusive) to the current selection. ! TablePositionBase<?> anchor = getAnchor(table, getFocusedCell()); final int anchorRow = anchor.getRow(); selectRows(anchorRow, index); } else { simpleSelect(button, clickCount, shortcutDown); }