private void setupSkin() {
    // remove any pre-existing tiles
    tilePane.getChildren().clear();

    int column = 0;
    int row = 0;

    final int columnsPerRow = WorkbenchUtils.calculateColumnsPerRow(tiles.size());
    for (Tile tile : tiles) {
      tilePane.add(tile, column, row);
      column++;

      if (column == columnsPerRow) {
        column = 0;
        row++;
      }
    }
  }
Creates a new {@link PageSkin} object for a corresponding {@link Page}.

@param page the {@link Page} for which this Skin is created
workbenchfx-core/src/main/java/com/dlsc/workbenchfx/view/controls/module/PageSkin.java