public void togglePane() { if (toggleAnimation == null) { updateToggleAnimation(); } this.getClip().scaleXProperty().unbind(); this.getClip().scaleYProperty().unbind(); toggleAnimation.setRate(toggleAnimation.getRate() * -1); if (toggleAnimation.getCurrentTime().equals(Duration.millis(0)) && toggleAnimation.getRate() == -1) { toggleAnimation.playFrom(Duration.millis(510)); } else { toggleAnimation.play(); } }
/** * set mini drawer mode (the drawer will be animated by changing the size instead * of translation).You can disable this mode, by setting the size value <= 0 * * @param size value */ public void setMiniDrawerSize(double size) { this.miniDrawerSize.set(size); if (size > 0) { updateSize(size); initTranslate.unbind(); initTranslate.set(0); paddingSizeProperty.set(size); } else { updateSize(getDefaultDrawerSize()); initTranslate.bind(initTranslateBinding); paddingSizeProperty.set(0); } resizeTo = size; }
public ToolbarTitledPane() { getStyleClass().add("tool-bar-title"); // change the default setCollapsible(false); toolBar.setPadding(Insets.EMPTY); Label titleLabel = new Label("Title"); titleLabel.textProperty().bind(title); titleLabel.getStyleClass().add("title-label"); toolBar.getItems().add(titleLabel); setGraphic(toolBar); // should be an empty string, binding prevents to set it textProperty().bind(Val.constant("")); // The toolbar is too large for the title region and is not // centered unless we bind the height, like follows Val.wrap(toolBar.parentProperty()) .values() .filter(Objects::nonNull) .subscribe(parent -> { // The title region is provided by the skin, // this is the only way to access it outside of css StackPane titleRegion = (StackPane) parent; toolBar.maxHeightProperty().unbind(); toolBar.maxHeightProperty().bind(titleRegion.heightProperty()); toolBar.minHeightProperty().unbind(); toolBar.minHeightProperty().bind(titleRegion.heightProperty()); toolBar.prefHeightProperty().unbind(); toolBar.prefHeightProperty().bind(titleRegion.heightProperty()); }); }
@Override public void unbind() { delegate.unbind(); }
/** * @{inheritedDoc} */ @Override protected void finalize() throws Throwable { super.finalize(); centerFixedAreaSection.minWidthProperty().unbind(); centerFixedAreaSection.maxWidthProperty().unbind(); leftFixedAreaSection.minWidthProperty().unbind(); leftFixedAreaSection.maxWidthProperty().unbind(); rightFixedAreaSection.minWidthProperty().unbind(); rightFixedAreaSection.maxWidthProperty().unbind(); mainScrollPane = null; }
/** * @{inheritedDoc} */ @Override protected void finalize() throws Throwable { super.finalize(); centerFixedAreaSection.minWidthProperty().unbind(); centerFixedAreaSection.maxWidthProperty().unbind(); leftFixedAreaSection.minWidthProperty().unbind(); leftFixedAreaSection.maxWidthProperty().unbind(); rightFixedAreaSection.minWidthProperty().unbind(); rightFixedAreaSection.maxWidthProperty().unbind(); mainScrollPane = null; }
private void end() { progressBar.progressProperty().unbind(); dialogVisible = false; DialogUtils.forcefullyHideDialog(dialog); }
/** * Stop managing zoom management by removing all event handlers and bindings, and hiding the * rectangle. */ public void stop() { handlerManager.removeAllHandlers(); selecting.set( false ); selectRect.widthProperty().unbind(); selectRect.heightProperty().unbind(); selectRect.visibleProperty().unbind(); }
@Override public void onEntityRemoved(Entity entity) { destroyView(entity.getViewComponent()); EntityView debugView = debugPositions.get(entity); if (debugView != null) { debugView.translateXProperty().unbind(); debugView.translateYProperty().unbind(); removeGameView(debugView, RenderLayer.TOP); debugPositions.remove(entity); } }
public void setLabelVisible(boolean b) { if (!b) { getChildren().remove(label); barGroup.translateXProperty().unbind(); barGroup.translateYProperty().unbind(); barGroup.setTranslateX(0); barGroup.setTranslateY(0); } else if (!getChildren().contains(label)) { getChildren().add(label); setLabelPosition(labelPosition); } }
public void setLabelVisible(boolean b) { if (!b) { getChildren().remove(label); barGroup.translateXProperty().unbind(); barGroup.translateYProperty().unbind(); barGroup.setTranslateX(0); barGroup.setTranslateY(0); } else if (!getChildren().contains(label)) { getChildren().add(label); setLabelPosition(labelPosition); } }
@Override public void endInlineEdit() { endEdition(); getChildren().clear(); minHeightProperty().unbind(); minHeightProperty().set(prefHeightProperty().get()); // TODO TEST ME // getChildren().addAll(layout, actionsLayout); getChildren().addAll(layout); }