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 +1,7 @@
/*
- * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ * 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,11 +32,10 @@
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> {
/***************************************************************************
@@ -44,11 +43,11 @@
* Constructors *
* *
**************************************************************************/
public TableRowBehaviorBase(T control) {
- super(control, Collections.emptyList());
+ super(control);
}
/***************************************************************************
@@ -107,11 +106,11 @@
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());
+ TablePositionBase<?> anchor = getAnchor(table, getFocusedCell());
final int anchorRow = anchor.getRow();
selectRows(anchorRow, index);
} else {
simpleSelect(button, clickCount, shortcutDown);
}