}
@Deprecated
private void initializeColumns_OLD(@Nonnull final List<Double> prefWidth) {
TableColumn title_priority = new TableColumn(RBLoader.ll("Priority"));
TableColumn title_name = new TableColumn(RBLoader.ll("Name"));
TableColumn title_fdir = new TableColumn(RBLoader.ll("Source"));
TableColumn title_action = new TableColumn(RBLoader.ll("Action"));
TableColumn title_dest = new TableColumn(RBLoader.ll("Destination"));
TableColumn title_status = new TableColumn(RBLoader.ll("Status"));
table.getColumns().addAll(title_priority, title_name, title_fdir,
title_action, title_dest, title_status);
PropertyValueFactory pvf = new PropertyValueFactory<>("node");
title_priority.setCellValueFactory(pvf);
title_name.setCellValueFactory(pvf);
title_fdir.setCellValueFactory(pvf);
title_action.setCellValueFactory(pvf);
title_dest.setCellValueFactory(pvf);
title_status.setCellValueFactory(pvf);
title_priority.setCellFactory(new TableCellValue(0));
title_name.setCellFactory(new TableCellValue(1));
title_fdir.setCellFactory(new TableCellValue(2));
title_action.setCellFactory(new TableCellValue(3));
title_dest.setCellFactory(new TableCellValue(4));
title_status.setCellFactory(new TableCellValue(5));
try {
if (prefWidth != null && !prefWidth.isEmpty() && prefWidth.size() == table.getColumns().size()) {
for (int i = 0; i < prefWidth.size(); i++) {
Object t = table.getColumns().get(i);
if (t instanceof TableColumn) {
TableColumn tc = (TableColumn) t;
tc.setPrefWidth(prefWidth.get(i));
}
}
} else {
title_priority.setPrefWidth(70.0);
title_name.setPrefWidth(100.0);