/** * @{inheritedDoc} */ @Override public void layout(IViewLayoutManageable layoutManageable) { super.layout(layoutManageable); centerFixedAreaSection.minWidthProperty().bind(centerFixedAreaSection.prefWidthProperty()); centerFixedAreaSection.maxWidthProperty().bind(centerFixedAreaSection.prefWidthProperty()); NodeHelper.setStyleClass(centerFixedAreaSection, layoutManageable.getConfiguration(), "centerSectionAreaStyleClass", false); Node topSection = layoutManageable.getNodeOnPosition(ViewLayoutPosition.TOP); if (topSection != null) { add(topSection); } Node bottomSection = layoutManageable.getNodeOnPosition(ViewLayoutPosition.BOTTOM); if (bottomSection != null) { add(bottomSection); } if (layoutManageable.getResponsiveMatrix() != null) { this.responsiveMatrix = layoutManageable.getResponsiveMatrix(); } }
par.prefWidthProperty().addListener((obs, oldVal, newVal) -> primaryStage.setWidth(newVal.doubleValue()));
layout.prefWidthProperty().bind( stage.widthProperty() ); layout.prefHeightProperty().bind( stage.heightProperty() );
borderPane.setCenter(vbox); vbox.prefWidthProperty().bind(bigButton.widthProperty()); vbox.prefHeightProperty().bind(bigButton.heightProperty());
messageScroller.setHbarPolicy(ScrollBarPolicy.NEVER); messageScroller.setPrefHeight(300); messageScroller.prefWidthProperty().bind(messageContainer.prefWidthProperty().subtract(5)); messageScroller.setFitToWidth(true);
vBox.prefWidthProperty().bind(root.prefWidthProperty()); boxc.setManaged(true); boxc.getChildren().addAll(tableView, c);
showDetailsView(); detailsView.prefWidthProperty().bind(rootLayout.widthProperty()); detailsView.prefHeightProperty().bind(rootLayout.heightProperty());
top.prefWidthProperty().bind(base.prefWidthProperty()); top.setPrefHeight(33); top.setLeft(setBaseTitle());