@Override public void invalidated(Observable ignored) { if (Double.isNaN(dialog.getWidth()) || Double.isNaN(dialog.getHeight())) { return; } dialog.widthProperty().removeListener(positionAdjuster); dialog.heightProperty().removeListener(positionAdjuster); fixPosition(); } };
private void removeLayoutListeners() { Window stage = getOwner(); if (stage != null) { stage.getScene().widthProperty().removeListener(widthListener); stage.getScene().heightProperty().removeListener(heightListener); stage.xProperty().removeListener(xListener); stage.yProperty().removeListener(yListener); } }
public void unregisterSnackbarContainer(Pane snackbarContainer) { if (snackbarContainer != null) { if (this.snackbarContainer == null) { throw new IllegalArgumentException("Snackbar Container not set"); } this.snackbarContainer.getChildren().remove(this); this.snackbarContainer.heightProperty().removeListener(weakSizeListener); this.snackbarContainer.widthProperty().removeListener(weakSizeListener); this.snackbarContainer = null; } }
private void removeLayoutListeners() { Window stage = getOwner(); if (stage != null) { stage.getScene().widthProperty().removeListener(widthListener); stage.getScene().heightProperty().removeListener(heightListener); stage.xProperty().removeListener(xListener); stage.yProperty().removeListener(yListener); } }
public void unregisterSnackbarContainer(Pane snackbarContainer) { if (snackbarContainer != null) { if (this.snackbarContainer == null) { throw new IllegalArgumentException("Snackbar Container not set"); } this.snackbarContainer.getChildren().remove(this); this.snackbarContainer.heightProperty().removeListener(weakSizeListener); this.snackbarContainer.widthProperty().removeListener(weakSizeListener); this.snackbarContainer = null; } }
@Override public void invalidated(Observable ignored) { if (Double.isNaN(dialog.getWidth()) || Double.isNaN(dialog.getHeight())) { return; } dialog.widthProperty().removeListener(positionAdjuster); dialog.heightProperty().removeListener(positionAdjuster); fixPosition(); } };
@Override public void close() { dockingSplitPane.getDockingSplitPaneChildren().removeListener(dockingSplitPaneChildrenListener); dockingSplitPane.widthProperty().removeListener(widthChangeListener); dockingSplitPane.heightProperty().removeListener(heightChangeListener); } }
@Override public void close() { dockingSplitPane.getDockingSplitPaneChildren().removeListener(dockingSplitPaneChildrenListener); dockingSplitPane.widthProperty().removeListener(sizeChangeListener); dockingSplitPane.heightProperty().removeListener(sizeChangeListener); dockingSplitPane.layoutConstraintsProperty().removeListener(sizeChangeListener); } }
/** * @{inheritedDoc} */ @Override protected void finalize() throws Throwable { super.finalize(); getRootPane().widthProperty().removeListener(rootPaneWidthChangeListener); rootPaneWidthChangeListener = null; layoutManageable = null; responsiveMatrix = null; rootPane = null; rootPane.getChildren().clear(); }
/** * Enables resizing if the {@link SnapshotView#selectionAreaBoundary selectionAreaBoundary} is * {@link Boundary#NODE NODE}. */ private void enableResizingForNode() { // remove listeners for the control's size widthProperty().removeListener(resizeSelectionToNewControlWidthListener); heightProperty().removeListener(resizeSelectionToNewControlHeightListener); // add listener for the node's bounds and for new nodes if (getNode() != null) { getNode().boundsInParentProperty().addListener(resizeSelectionToNewNodeBoundsListener); } node.addListener(updateSelectionToNodeListener); resizeSelectionFromControlToNode(); }
ownerWindow.xProperty().removeListener(weakXListener); ownerWindow.yProperty().removeListener(weakYListener); ownerWindow.widthProperty().removeListener(weakHideListener); ownerWindow.heightProperty().removeListener(weakHideListener);
this.windowProperty.addListener((o, oldV, newV) -> { if (oldV != null) { oldV.widthProperty().removeListener(this::handleStageChange); oldV.heightProperty().removeListener(this::handleStageChange); oldV.xProperty().removeListener(this::handleStageChange); oldV.yProperty().removeListener(this::handleStageChange);
this.windowProperty.addListener((o, oldV, newV) -> { if (oldV != null) { oldV.widthProperty().removeListener(this::handleStageChange); oldV.heightProperty().removeListener(this::handleStageChange); oldV.xProperty().removeListener(this::handleStageChange); oldV.yProperty().removeListener(this::handleStageChange);