pane.backgroundProperty().unbind(); tabsHeader.backgroundProperty().unbind(); JFXFillTransition fillTransition = new JFXFillTransition(Duration.millis(240), pane, Insets.EMPTY))); Region tabsHeader = (Region) tabs.lookup(".tab-header-background"); pane.backgroundProperty().unbind(); tabsHeader.backgroundProperty().unbind(); tabsHeader.backgroundProperty().bind(Bindings.createObjectBinding(() -> { return new Background(new BackgroundFill(curvedColorPicker.selectedPath.get().getFill(),
contentPlaceHolder.borderProperty().unbind(); contentPlaceHolder.setBorder(Border.EMPTY); if (windowDecoratorAnimation != null) {
oldValue.fillProperty().unbind(); oldValue.prefWidthProperty().unbind(); oldValue.prefHeightProperty().unbind();
@Override public void unbind() { delegate.unbind(); }
@Override public void unattach(Pane node, TextNode textNode) { Line l = (Line) textNode.getUserData(); if( l != null ) { textNode.setUserData(null); node.getChildren().remove(l); l.fillProperty().unbind(); } }
private static void unconfigure(final ButtonBase btn) { if (btn == null || !(btn.getOnAction() instanceof Action)) { return; } Action action = (Action) btn.getOnAction(); btn.styleProperty().unbind(); btn.textProperty().unbind(); btn.disableProperty().unbind(); btn.graphicProperty().unbind(); action.getProperties().removeListener(new ButtonPropertiesMapChangeListener<>(btn, action)); btn.tooltipProperty().unbind(); if (btn instanceof ToggleButton) { ((ToggleButton) btn).selectedProperty().unbindBidirectional(action.selectedProperty()); } btn.setOnAction(null); }
@Override public void dispose() { box.highlightTextFillProperty().unbind(); box.wrapTextProperty().unbind(); box.graphicFactoryProperty().unbind(); box.graphicOffset.unbind(); firstParPseudoClass.unsubscribe(); lastParPseudoClass.unsubscribe(); caretSubscription.unsubscribe(); hasCaretPseudoClass.unsubscribe(); selectionSubscription.unsubscribe(); } };
private static void unconfigure(final MenuItem menuItem) { if (menuItem == null || !(menuItem.getOnAction() instanceof Action)) { return; } Action action = (Action) menuItem.getOnAction(); menuItem.styleProperty().unbind(); menuItem.textProperty().unbind(); menuItem.disableProperty().unbind(); menuItem.acceleratorProperty().unbind(); menuItem.graphicProperty().unbind(); action.getProperties().removeListener(new MenuItemPropertiesMapChangeListener<>(menuItem, action)); if (menuItem instanceof RadioMenuItem) { ((RadioMenuItem) menuItem).selectedProperty().unbindBidirectional(action.selectedProperty()); } else if (menuItem instanceof CheckMenuItem) { ((CheckMenuItem) menuItem).selectedProperty().unbindBidirectional(action.selectedProperty()); } menuItem.setOnAction(null); }
private void syncOrientationState() { // Apply pseudo classes when orientation changes labelPosition.addListener((observable, oldValue, newValue) -> { if (newValue == HORIZONTAL) { pseudoClassStateChanged(VERTICAL_PSEUDOCLASS_STATE, false); pseudoClassStateChanged(HORIZONTAL_PSEUDOCLASS_STATE, true); } else { pseudoClassStateChanged(HORIZONTAL_PSEUDOCLASS_STATE, false); pseudoClassStateChanged(VERTICAL_PSEUDOCLASS_STATE, true); } }); // Setup listeneres for wrapping wrapWidth.addListener(((observable, oldValue, newValue) -> { ObjectBinding<Orientation> responsiveOrientation = createObjectBinding(() -> getWidth() < newValue ? VERTICAL : HORIZONTAL, widthProperty()); if (labelPositionProperty().isBound()) labelPositionProperty().unbind(); labelPositionProperty().bind(responsiveOrientation); })); }
((Text)n).fillProperty().unbind(); });
public <T extends Node> Tab startInTab(FlowContainer<T> container) throws FlowException { Tab tab = new Tab(); getCurrentViewMetadata().addListener((e) -> { tab.textProperty().unbind(); tab.graphicProperty().unbind(); tab.textProperty().bind(getCurrentViewMetadata().get().titleProperty()); tab.graphicProperty().bind(getCurrentViewMetadata().get().graphicsProperty()); }); tab.setOnClosed(e -> { try { destroy(); } catch (Exception exception) { exceptionHandler.setException(exception); } }); tab.setContent(start(container)); return tab; }
pane.backgroundProperty().unbind(); tabsHeader.backgroundProperty().unbind(); JFXFillTransition fillTransition = new JFXFillTransition(Duration.millis(240), pane, Insets.EMPTY))); Region tabsHeader = (Region) tabs.lookup(".tab-header-background"); pane.backgroundProperty().unbind(); tabsHeader.backgroundProperty().unbind(); tabsHeader.backgroundProperty().bind(Bindings.createObjectBinding(() -> { return new Background(new BackgroundFill(curvedColorPicker.selectedPath.get().getFill(),
if (c.wasRemoved()) { c.getRemoved().forEach((f) -> { f.visibleLinesProperty().unbind(); f.numberOfLinesProperty().unbind(); f.yOffsetProperty().unbind();
contentPlaceHolder.borderProperty().unbind(); contentPlaceHolder.setBorder(Border.EMPTY); if (windowDecoratorAnimation != null) {