@Inject public WorkArea(List<Module> modules, QuickbarModuleButtonsPane modulesButtons) { getStyleClass().addAll(Style.CONTAINER.css()); setId("work-area"); for (Module module : modules) { this.modules.put(module.id(), module); } fade.setFromValue(0); fade.setToValue(1); center.setHbarPolicy(ScrollBarPolicy.NEVER); center.setFitToWidth(true); center.setFitToHeight(true); setCenter(center); setLeft(new QuickbarPane(modulesButtons)); eventStudio().addAnnotatedListeners(this); }
public NewsPanel() { getStyleClass().add("news-panel"); getStyleClass().addAll(Style.CONTAINER.css()); Button closeButton = FontAwesomeIconFactory.get().createIconButton(FontAwesomeIcon.TIMES); closeButton.getStyleClass().addAll("close-button"); closeButton.setOnAction(e -> eventStudio().broadcast(HideNewsPanelRequest.INSTANCE)); Label titleLabel = new Label(DefaultI18nContext.getInstance().i18n("What's new")); titleLabel.setPrefWidth(Integer.MAX_VALUE); titleLabel.getStyleClass().add("news-panel-title"); StackPane top = new StackPane(titleLabel, closeButton); top.setAlignment(Pos.TOP_RIGHT); scroll.getStyleClass().add("scrollable-news"); scroll.setHbarPolicy(ScrollBarPolicy.NEVER); scroll.setFitToHeight(true); scroll.setFitToWidth(true); getChildren().addAll(top, scroll); eventStudio().addAnnotatedListeners(this); }
DashboardItemPane(DashboardItem item) { requireNotNull(item, "Dashboard item cannot be null"); this.item = item; this.item.pane().getStyleClass().addAll(Style.DEAULT_CONTAINER.css()); this.item.pane().getStyleClass().addAll(Style.CONTAINER.css()); ScrollPane scroll = new ScrollPane(this.item.pane()); scroll.getStyleClass().addAll(Style.DEAULT_CONTAINER.css()); scroll.setFitToWidth(true); scroll.setHbarPolicy(ScrollBarPolicy.NEVER); scroll.setVbarPolicy(ScrollBarPolicy.AS_NEEDED); setCenter(scroll); eventStudio().add(SetActiveModuleRequest.class, enableFooterListener, Integer.MAX_VALUE, ReferenceStrength.STRONG); }
public NoticeBoard() { setManaged(false); String cssFileName = NoticeBoard.class.getSimpleName()+".css"; URL resource = NoticeBoard.class.getResource(cssFileName); getStylesheets().add(resource.toExternalForm()); getStyleClass().add("noticeBoardText"); ScrollPane scrollPane = new ScrollPane(); scrollPane.setLayoutX(20); scrollPane.setLayoutY(11); scrollPane.setMaxWidth(DEFAULT_WIDTH); scrollPane.setMinWidth(216); scrollPane.setMaxHeight(216); scrollPane.setMinHeight(216); scrollPane.setHbarPolicy(ScrollBarPolicy.NEVER); scrollPane.setVbarPolicy(ScrollBarPolicy.AS_NEEDED); nbScrollPane = new NoticeBoardScrollPaneContent(); scrollPane.setContent(nbScrollPane); getChildren().addAll(scrollPane); }
/** * @{inheritedDoc} */ @Override public void setRootConfig(VLViewComponentXML fieldsetListConfig) { this.fieldsetConfiguration = fieldsetListConfig; boolean scroll = fieldsetListConfig.getBooleanProperty("scroll", true); if (scroll) { fieldsetTopLayoutCenter.getChildren().add(scrollPane); scrollPane.setFitToHeight(true); scrollPane.setFitToWidth(true); scrollPane.setContent(contentLayout); scrollPane.setHbarPolicy(ScrollBarPolicy.NEVER); NodeHelper.styleClassAddAll(scrollPane, fieldsetListConfig, "contentStyleClass", "fieldset-group-selector-top-tabed-content"); NodeHelper.styleClassAddAll(contentLayout, fieldsetListConfig, "contentLayoutStyleClass"); } else { NodeHelper.styleClassAddAll(contentLayout, fieldsetListConfig, "contentLayoutStyleClass", "fieldset-group-selector-top-tabed-content"); fieldsetTopLayoutCenter.getChildren().add(contentLayout); } NodeHelper.styleClassAddAll(header, fieldsetConfiguration, "headerStyleClass", "fieldset-group-selector-top-tabed-header"); }
contentWrapper.getScroll().setHbarPolicy(ScrollBarPolicy.NEVER); select(tabs.get(0));
/** * Wrap a node into a scrollpane, this scrollpane is attended to be in the center of the view. Because a padding of 32 is set in the right side of the scrollpane. * * @param node * @return */ public static ScrollPane makeCentralScrollable(Node node) { final ScrollPane scrollPane = new ScrollPane(); scrollPane.setVbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollPane.setHbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollPane.setContent(node); scrollPane.setFitToHeight(true); scrollPane.setFitToWidth(true); scrollPane.setFocusTraversable(false); scrollPane.setStyle("-fx-background-color: transparent;" + "-fx-padding:0 ;" + "-fx-border-color:transparent;"); return scrollPane; }
/** * {@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); }
@Override protected void drawStepContent() { Text textWidget = new Text(textToShow); textWidget.setId("stepText"); ScrollPane scrollPane = new ScrollPane(); scrollPane.setId("stepScrollPane"); scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER); scrollPane.setFitToWidth(true); scrollPane.setContent(new TextFlow(textWidget)); this.addToContentPane(scrollPane); VBox.setVgrow(scrollPane, Priority.ALWAYS); }
/** * Wrap a node into a scrollpane * * @param node * @return */ public static ScrollPane makeScrollable(Node node) { final ScrollPane scrollPane = new ScrollPane(); final StackPane stackPane = new StackPane(); stackPane.getChildren().add(node); final Group scrollPaneContent = new Group(stackPane); scrollPaneContent.setAutoSizeChildren(true); scrollPane.setContent(scrollPaneContent); scrollPane.setVbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollPane.setHbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollPane.setFitToHeight(false); scrollPane.setFitToWidth(true); scrollPane.setFocusTraversable(false); scrollPane.setStyle("-fx-background-color:white;-fx-padding:0 0 0 0;" + "-fx-border-color:transparent;"); return scrollPane; }
@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); }
@FXML private ImageView image; @FXML private Button back; @FXML private AnchorPane Instructions; @FXML private ScrollPane sp; private void setScrollPane() { sp.setContent(image); sp.setHbarPolicy(ScrollBarPolicy.NEVER); sp.setVbarPolicy(ScrollBarPolicy.ALWAYS); sp.setFitToWidth(true); sp.setFitToHeight(true); sp.vvalueProperty().addListener((ObservableValue<? extends Number> ov, Number old_val, Number new_val) -> { if (new_val.doubleValue() >= sp.getVmax()) { back.setVisible(true); } if (new_val.doubleValue() < sp.getVmax()) { back.setVisible(false); } }); }
/** * Builds the content */ private void buildContent() { String contentImpl = configuration.getPropertyValue(CONTENT_IMPL); if (StringUtils.isEmpty(contentImpl)) { contentImpl = WIZARD_STEP_CONTENT; } stepContent = (IWizardStepContent) Services.getBean(contentImpl); stepContent.buildFrom(controller, configuration); Node setCenter = stepContent.getDisplay(); ScrollPane pane = new ScrollPane(); pane.setContent(setCenter); pane.setFitToHeight(true); pane.setFitToWidth(true); pane.setVbarPolicy(ScrollBarPolicy.NEVER); pane.setHbarPolicy(ScrollBarPolicy.NEVER); getChildren().add(pane); AnchorPane.setBottomAnchor(pane, 100.); AnchorPane.setLeftAnchor(pane, 0.); AnchorPane.setRightAnchor(pane, 0.); boolean displayHeader = configuration.booleanPropertyValueOf("displayHeader").orElse(true); if(displayHeader) { AnchorPane.setTopAnchor(pane, 120.); } else { AnchorPane.setTopAnchor(pane, 0.); } }
scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER); // the TilePane adjusts the number of columns
ScrollPane scrollPane = new ScrollPane(); scrollPane.setContent(parametersBox); scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); parametersBox.setPrefHeight(250);
scrollPaneBreadCrumbBar.setHvalue(1.0); scrollPaneBreadCrumbBar.setVbarPolicy(ScrollPane.ScrollBarPolicy.NEVER); scrollPaneBreadCrumbBar.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER); scrollPaneBreadCrumbBar.getStyleClass().add("transparent-scroll-pane");
messageScroller.setHbarPolicy(ScrollBarPolicy.NEVER); messageScroller.setPrefHeight(300); messageScroller.prefWidthProperty().bind(messageContainer.prefWidthProperty().subtract(5));
mainScrollPane.setHbarPolicy(ScrollBarPolicy.NEVER);
mainScrollPane.setHbarPolicy(ScrollBarPolicy.NEVER);
mainScrollPane.setHbarPolicy(ScrollBarPolicy.NEVER);