container.getChildren().add(leftLine); container.getChildren().add(rippler); AnchorPane.setRightAnchor(rippler, labelOffset);
/** * Creates a new {@link Button} object used to clear the search box * * @return The created clear button */ private Button createClearButton() { Button clearButton = new Button(); clearButton.getStyleClass().add("searchCleanButton"); AnchorPane.setRightAnchor(clearButton, 0.0); return clearButton; }
protected void setAnchors(Node node, String anchors) { final String[] an = anchors.split(","); final double top = Long.valueOf(an[0]); final double right = Long.valueOf(an[1]); final double bottom = Long.valueOf(an[2]); final double left = Long.valueOf(an[3]); AnchorPane.clearConstraints(node); AnchorPane.setTopAnchor(node, top > -1 ? top : null); AnchorPane.setRightAnchor(node, right > -1 ? right : null); AnchorPane.setBottomAnchor(node, bottom > -1 ? bottom : null); AnchorPane.setLeftAnchor(node, left > -1 ? left : null); }
public void setErrorLoading() { getChildren().clear(); getChildren().add(errorPane); AnchorPane.setLeftAnchor(errorPane, 0.0); AnchorPane.setRightAnchor(errorPane, 0.0); }
public void setProcessing() { getChildren().clear(); getChildren().add(processingPane); AnchorPane.setLeftAnchor(processingPane, 0.0); AnchorPane.setRightAnchor(processingPane, 0.0); }
protected void createControl() { fTextWidget = createTextWidget(); AnchorPane.setLeftAnchor(fTextWidget, 0.0); AnchorPane.setRightAnchor(fTextWidget, 0.0); AnchorPane.setTopAnchor(fTextWidget, 0.0); AnchorPane.setBottomAnchor(fTextWidget, 0.0); getChildren().add(fTextWidget); }
public void setNoContent() { if (displayHeaderIfEmpty) { setTableView(); // tableLayout.setBottom(noContentPane); } else { getChildren().clear(); getChildren().add(noContentPane); AnchorPane.setTopAnchor(noContentPane, 0.0); AnchorPane.setLeftAnchor(noContentPane, 0.0); AnchorPane.setRightAnchor(noContentPane, 0.0); // buildMaterialButton(); } }
private void layoutContent() { // center.getStyleClass().add("wizard-center-content-wrapper"); Node centerContent = ((IBuildable) content).getDisplay(); getChildren().add(centerContent); if (footer != null && !footer.getDisplay().isVisible()) { AnchorPane.setBottomAnchor(centerContent, 60.0); AnchorPane.setLeftAnchor(centerContent, 0.0); AnchorPane.setRightAnchor(centerContent, 0.0); AnchorPane.setTopAnchor(centerContent, 60.); } else { AnchorPane.setBottomAnchor(centerContent, 0.0); AnchorPane.setLeftAnchor(centerContent, 0.0); AnchorPane.setRightAnchor(centerContent, 0.0); AnchorPane.setTopAnchor(centerContent, 60.); } }
public void setTechnicalErrorOccurs() { bottomToolbar.setPageResult(null); getChildren().clear(); getChildren().add(errorPane); AnchorPane.setTopAnchor(errorPane, 0.0); AnchorPane.setLeftAnchor(errorPane, 0.0); AnchorPane.setRightAnchor(errorPane, 0.0); AnchorPane.setBottomAnchor(errorPane, 0.0); }
/** * @{inheritedDoc} */ @Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { super.buildFrom(controller, configuration); AnchorPane.setTopAnchor(iconContainer, -2.0); AnchorPane.setRightAnchor(iconContainer, 8.0); AnchorPane.setTopAnchor(link, 4.0); AnchorPane.setLeftAnchor(link, 0.0); AnchorPane.setRightAnchor(link, 0.0); container.getChildren().addAll(link); container.getChildren().add(label); // buildCircleIcon(); label.getStyleClass().add("ep-countable-button-count"); label.visibleProperty().bind(Bindings.greaterThan(count, 0)); Bindings.bindBidirectional(label.textProperty(), count, NumberFormat.getInstance()); }
public void setMaterialNode(Node materialNode) { Platform.runLater(() -> { if (this.materialNode != null) { ((Pane) processedView()).getChildren().remove(this.materialNode); } ((Pane) processedView()).getChildren().add(materialNode); this.materialNode = materialNode; AnchorPane.setTopAnchor(materialNode, 350.); AnchorPane.setRightAnchor(materialNode, 40.); initMaterialNodeDrag(); }); }
/** * Will replace the full table content in the layout manager with this content. The use can cancel * it and this pane will be hidden and replaced by the table. */ public void beginEdition(Node node) { getChildren().clear(); getChildren().addAll(node, minimizeAction); NodeHelper.setVgrow(node); // AnchorPane.setTopAnchor(closeAction, 5.0); // AnchorPane.setRightAnchor(closeAction, 30.0); AnchorPane.setTopAnchor(minimizeAction, 5.0); AnchorPane.setRightAnchor(minimizeAction, 30.0); AnchorPane.setTopAnchor(node, 0.0); AnchorPane.setBottomAnchor(node, 0.0); AnchorPane.setLeftAnchor(node, 0.0); AnchorPane.setRightAnchor(node, 0.0); }
private void updateConstraints() { AnchorPane.clearConstraints(anchorCenteredPane); AnchorPane.setLeftAnchor(anchorCenteredPane, 0.); AnchorPane.setRightAnchor(anchorCenteredPane, 0.); AnchorPane.setTopAnchor(anchorCenteredPane, 0.); if (bottomNode.isVisible()) { AnchorPane.setBottomAnchor(anchorCenteredPane, 72.0); } else { AnchorPane.setBottomAnchor(anchorCenteredPane, 0.0); } }
/** * Builds the footer */ private void buildFooter() { String footerImpl = configuration.getPropertyValue(FOOTER_IMPL); if (StringUtils.isEmpty(footerImpl)) { footerImpl = WIZARD_STEP_FOOTER; } stepFooter = (IWizardStepFooter) Services.getBean(footerImpl); stepFooter.buildFrom(controller, configuration); Node bottom = stepFooter.getDisplay(); getChildren().add(bottom); AnchorPane.setBottomAnchor(bottom, 0.); AnchorPane.setLeftAnchor(bottom, 0.); AnchorPane.setRightAnchor(bottom, 0.); }
/** * Builds the footer of the {@link Wizard}. */ private void buildFooter() { String footerImpl = configuration.getPropertyValue(FOOTER_IMPL); if (StringUtils.isNotEmpty(footerImpl)) { footer = (IWizardFooter) Services.getBean(footerImpl); footer.buildFrom(controller, configuration); Node node = footer.getDisplay(); getChildren().add(node); AnchorPane.setBottomAnchor(node, 0.0); AnchorPane.setLeftAnchor(node, 0.0); AnchorPane.setRightAnchor(node, 0.0); } }
/** * Builds the listViewPaneHeader of the {@link Wizard}. */ protected void buildHeader() { String headerImpl = configuration.getPropertyValue(HEADER_IMPL, "WizardHeader"); boolean displayHeader = configuration.getBooleanProperty("displayHeader", true); if (displayHeader) { header = (IWizardHeader) Services.getBean(headerImpl); header.buildFrom(controller, configuration); Node node = header.getDisplay(); getChildren().add(node); AnchorPane.setTopAnchor(node, 0.0); AnchorPane.setLeftAnchor(node, 0.0); AnchorPane.setRightAnchor(node, 0.0); } }
/** * Creates a new {@link TextField} object fitted to the given container. * * @param container The container to which the text field is added * @return The created text field */ private TextField createTextField(AnchorPane container) { TextField searchField = new TextField(); searchField.getStyleClass().add("searchBar"); searchField.prefHeightProperty().bind(container.prefHeightProperty()); searchField.prefWidthProperty().bind(container.prefWidthProperty()); AnchorPane.setLeftAnchor(searchField, 0.0); AnchorPane.setRightAnchor(searchField, 0.0); return searchField; }
public void setProcessing() { bottomToolbar.setPageResult(null); getChildren().clear(); getChildren().add(processingPane.getDisplay()); AnchorPane.setLeftAnchor(processingPane.getDisplay(), 0.0); AnchorPane.setRightAnchor(processingPane.getDisplay(), 0.0); AnchorPane.setTopAnchor(processingPane.getDisplay(), 0.0); AnchorPane.setBottomAnchor(processingPane.getDisplay(), 0.0); }
public void setNoContent() { if (displayHeaderIfEmpty) { setTableView(); // tableLayout.setBottom(noContentPane); } else { getChildren().clear(); getChildren().add(noContentPane.getDisplay()); AnchorPane.setTopAnchor(noContentPane.getDisplay(), 0.0); AnchorPane.setLeftAnchor(noContentPane.getDisplay(), 0.0); AnchorPane.setRightAnchor(noContentPane.getDisplay(), 0.0); AnchorPane.setBottomAnchor(noContentPane.getDisplay(), 0.0); // buildMaterialButton(); } }
protected void drawLeftImage() { AnchorPane pane = new AnchorPane(); pane.setPrefWidth(187); Stop[] stops = new Stop[] { new Stop(0, Color.web("#3c79b2")), new Stop(1, Color.web("#2d5d8b")) }; RadialGradient gradient = new RadialGradient(0, 0, 0.5, 0.5, 1, true, CycleMethod.NO_CYCLE, stops); Background background = new Background(new BackgroundFill(gradient, null, null)); pane.setBackground(background); Text text = new Text(this.parent.getLeftImageText()); text.setFill(Color.WHITE); text.setFont(Font.font("Maven Pro", 50)); text.setRotate(-90); pane.setPadding(new Insets(-50)); pane.getChildren().add(text); AnchorPane.setBottomAnchor(text, 160.0); AnchorPane.setRightAnchor(text, -40.0); getParent().getRoot().setLeft(pane); }