use of javafx.scene.control.ScrollPane in project POL-POM-5 by PhoenicisOrg.
the class StepRepresentationPresentation method drawStepContent.
@Override
protected void drawStepContent() {
final String title = this.getParentWizardTitle();
VBox contentPane = new VBox();
contentPane.setId("presentationBackground");
Label titleWidget = new Label(title + "\n\n");
titleWidget.setId("presentationTextTitle");
Text textWidget = new Text(textToShow);
textWidget.setId("presentationText");
TextFlow flow = new TextFlow();
flow.getChildren().add(textWidget);
ScrollPane scrollPane = new ScrollPane();
scrollPane.setId("presentationScrollPane");
scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
scrollPane.setFitToWidth(true);
scrollPane.setContent(flow);
VBox.setVgrow(scrollPane, Priority.ALWAYS);
contentPane.getChildren().add(scrollPane);
getParent().getRoot().setCenter(contentPane);
}
use of javafx.scene.control.ScrollPane in project POL-POM-5 by PhoenicisOrg.
the class ContainerEngineToolsPanelSkin method initialise.
/**
* {@inheritDoc}
*/
@Override
public void initialise() {
final Text title = new Text(tr("Engine tools"));
title.getStyleClass().add("title");
final FlowPane toolButtonContainer = createToolButtonContainer();
final VBox toolsPane = new VBox(title, toolButtonContainer);
toolsPane.getStyleClass().addAll("containerConfigurationPane");
final ScrollPane scrollPane = new ScrollPane(toolsPane);
scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
scrollPane.setFitToWidth(true);
getChildren().addAll(scrollPane);
}
use of javafx.scene.control.ScrollPane in project POL-POM-5 by PhoenicisOrg.
the class ContainerVerbsPanelSkin method initialise.
/**
* {@inheritDoc}
*/
@Override
public void initialise() {
final Text title = new Text(tr("Verbs"));
title.getStyleClass().add("title");
final GridPane verbs = new GridPane();
verbs.getStyleClass().add("verb-grid");
// ensure that the shown verbs are always up to date
getControl().getVerbScripts().addListener((Observable invalidation) -> updateVerbs(verbs));
// ensure that the shown verbs are correctly initialized
updateVerbs(verbs);
final ScrollPane verbScrollPanel = new ScrollPane(verbs);
verbScrollPanel.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
verbScrollPanel.setFitToWidth(true);
VBox.setVgrow(verbScrollPanel, Priority.ALWAYS);
final HBox verbManagementButtons = createVerbManagementButtons(verbs);
verbManagementButtons.getStyleClass().add("verb-management-button-container");
final VBox container = new VBox(title, verbScrollPanel, verbManagementButtons);
container.getStyleClass().addAll("container-details-panel", "container-verbs-panel");
getChildren().setAll(container);
}
use of javafx.scene.control.ScrollPane in project POL-POM-5 by PhoenicisOrg.
the class IconsListWidgetSkin method initialise.
/**
* {@inheritDoc}
*/
@Override
public void initialise() {
final ScrollPane scrollPane = new ScrollPane();
scrollPane.getStyleClass().add("iconListWidget");
scrollPane.setCache(true);
scrollPane.setCacheHint(CacheHint.QUALITY);
scrollPane.setContent(createContent(scrollPane));
getChildren().addAll(scrollPane);
}
use of javafx.scene.control.ScrollPane in project POL-POM-5 by PhoenicisOrg.
the class SidebarSkinBase method createScrollPane.
/**
* Creates a {@link ScrollPane} containing the given {@link Node[] nodes}.
* The nodes are shown below each other in the {@link ScrollPane}
*
* @param nodes The nodes inside the returned {@link ScrollPane}
* @return A {@link ScrollPane} containing all given nodes
*/
protected static ScrollPane createScrollPane(Node... nodes) {
final VBox content = new VBox(nodes);
final ScrollPane scrollPane = new ScrollPane(content);
scrollPane.getStyleClass().add("sidebarScrollbar");
return scrollPane;
}
Aggregations