Jonathan Giles avatar Jonathan Giles committed 5ad7a41

RT-31570: Make some VirtualFlow method protected

Comments (0)

Files changed (1)

modules/controls/src/main/java/com/sun/javafx/scene/control/skin/VirtualFlow.java

      * which is not associated with any cell, so we have to do a bit of work
      * to use a cell as a helper for computing cell size in some cases.
      */
-    double getCellLength(int index) {
+    protected double getCellLength(int index) {
         if (fixedCellSizeEnabled) return fixedCellSize;
         
         T cell = getCell(index);
 
     /**
      */
-    double getCellBreadth(int index) {
+    protected double getCellBreadth(int index) {
         T cell = getCell(index);
         double b = getCellBreadth(cell);
         releaseCell(cell);
     /**
      * Gets the length of a specific cell
      */
-    private double getCellLength(T cell) {
+    protected double getCellLength(T cell) {
         if (cell == null) return 0;
         if (fixedCellSizeEnabled) return fixedCellSize;
 
     /**
      * Gets the breadth of a specific cell
      */
-    private double getCellBreadth(Cell cell) {
+    protected double getCellBreadth(Cell cell) {
         return isVertical() ?
             cell.prefWidth(-1)
             : cell.prefHeight(-1);
     /**
      * Gets the layout position of the cell along the length axis
      */
-    private double getCellPosition(T cell) {
+    protected double getCellPosition(T cell) {
         if (cell == null) return 0;
 
         return isVertical() ?
             : cell.getLayoutX();
     }
 
-    private void positionCell(T cell, double position) {
+    protected void positionCell(T cell, double position) {
         if (isVertical()) {
             cell.setLayoutX(0);
             cell.setLayoutY(snapSize(position));
         }
     }
 
-    private void resizeCellSize(T cell) {
+    protected void resizeCellSize(T cell) {
         if (cell == null) return;
         
         if (isVertical()) {
         }
     }
 
-    private void setCellIndex(T cell, int index) {
+    protected void setCellIndex(T cell, int index) {
         assert cell != null;
 
         cell.updateIndex(index);
      * cells from the pile where possible, and will create new cells when
      * necessary.
      */
-    private T getAvailableCell(int prefIndex) {
+    protected T getAvailableCell(int prefIndex) {
         T cell = null;
         
         // Fix for RT-12822. We try to retrieve the cell from the pile rather
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.