private void unbindScrollBar(ScrollBar bar) { bar.maxProperty().unbind(); bar.unitIncrementProperty().unbind(); bar.blockIncrementProperty().unbind(); bar.visibleProperty().unbind(); }
public AquaScrollBarSkin(ScrollBar scrollBar) { super(scrollBar); if (getNode().getParent() instanceof ScrollPane) { fadeable = true; } scrollBar.setVisible(!fadeable); registerChangeListener(scrollBar.hoverProperty(), "HOVER"); registerChangeListener(scrollBar.valueProperty(), "VALUE"); registerChangeListener(scrollBar.visibleProperty(), "VISIBLE"); }
); scrollBar.visibleProperty().addListener((observable, wasVisible, isVisible) -> { if (!isVisible) {
shouldDisplayVertical.addListener(obs -> Platform.runLater(this::requestLayout)); hbar.visibleProperty().bind(shouldDisplayHorizontal); vbar.visibleProperty().bind(shouldDisplayVertical);