use of javafx.scene.control.Separator in project trex-stateless-gui by cisco-system-traffic-generator.
the class AbstractProtocolView method addSeparator.
/**
*
* @param top
* @param left
* @param width
*/
protected void addSeparator(double top, double left, double width) {
Separator separator = new Separator(Orientation.HORIZONTAL);
separator.setPrefWidth(width);
separator.setPrefHeight(1);
container.getChildren().add(separator);
container.setTopAnchor(separator, top);
container.setLeftAnchor(separator, left);
}
use of javafx.scene.control.Separator in project aic-praise by aic-sri-international.
the class SGSolverDemoController method openMenuContent.
private Node openMenuContent() {
VBox openMenu = new VBox(2);
openMenu.setPadding(new Insets(3, 3, 3, 3));
Button saveAsButton = new Button("Save As...");
saveAsButton.setOnAction(this::saveModelAs);
FXUtil.setButtonStackedIcons(saveAsButton, FontAwesomeIcons.SAVE, FontAwesomeIcons.PENCIL);
HBox saveAsHBox = newButtonHBox();
saveAsHBox.getChildren().addAll(saveAsButton, new Label("Save As..."));
Separator hSep = new Separator(Orientation.HORIZONTAL);
hSep.setPrefWidth(170);
importUAIModelButton.setOnAction(this::importUAIModel);
FXUtil.setDefaultButtonIcon(importUAIModelButton, FontAwesomeIcons.PUZZLE_PIECE);
HBox importUAIHBox = newButtonHBox();
importUAIHBox.getChildren().addAll(importUAIModelButton, new Label("Import UAI Model..."));
exportUAIModelButton.setOnAction(this::exportUAIModel);
FXUtil.setDefaultButtonIcon(exportUAIModelButton, FontAwesomeIcons.ARCHIVE);
HBox exportUAIHBox = newButtonHBox();
exportUAIHBox.getChildren().addAll(exportUAIModelButton, new Label("Export to UAI Model..."));
openMenu.getChildren().addAll(saveAsHBox, hSep, importUAIHBox, exportUAIHBox);
return openMenu;
}
Aggregations