selTagMenues.add(menuItem);
}
tagSplitButton.getItems().setAll(selTagMenues);
}
});
cat0Toggle.setBorder(new Border(new BorderStroke(Category.ZERO.getColor(), BorderStrokeStyle.SOLID, new CornerRadii(1), new BorderWidths(1))));
cat1Toggle.setBorder(new Border(new BorderStroke(Category.ONE.getColor(), BorderStrokeStyle.SOLID, new CornerRadii(1), new BorderWidths(1))));
cat2Toggle.setBorder(new Border(new BorderStroke(Category.TWO.getColor(), BorderStrokeStyle.SOLID, new CornerRadii(1), new BorderWidths(1))));
cat3Toggle.setBorder(new Border(new BorderStroke(Category.THREE.getColor(), BorderStrokeStyle.SOLID, new CornerRadii(1), new BorderWidths(1))));
cat4Toggle.setBorder(new Border(new BorderStroke(Category.FOUR.getColor(), BorderStrokeStyle.SOLID, new CornerRadii(1), new BorderWidths(1))));
cat5Toggle.setBorder(new Border(new BorderStroke(Category.FIVE.getColor(), BorderStrokeStyle.SOLID, new CornerRadii(1), new BorderWidths(1))));
cat0Toggle.selectedProperty().addListener(new CategorizeToggleHandler(Category.ZERO));
cat1Toggle.selectedProperty().addListener(new CategorizeToggleHandler(Category.ONE));
cat2Toggle.selectedProperty().addListener(new CategorizeToggleHandler(Category.TWO));
cat3Toggle.selectedProperty().addListener(new CategorizeToggleHandler(Category.THREE));