private double getGap() { return (getListView() instanceof JFXListView) ? (((JFXListView<?>) getListView()).isExpanded() ? ((JFXListView<?>) getListView()) .currentVerticalGapProperty() .get() : 0) : 0; } }
listViewProperty().addListener((listObj, oldList, newList) -> { if (newList != null) { if (getListView() instanceof JFXListView) { ((JFXListView<?>) newList).currentVerticalGapProperty().addListener((o, oldVal, newVal) -> { cellRippler.rippler.setClip(null); if (newVal.doubleValue() != 0) { playExpandAnimation = true; getListView().requestLayout(); } else { gapAnimation.setOnFinished((finish) -> { requestLayout(); Platform.runLater(() -> getListView().requestLayout()); });
((JFXListView<?>) getListView()).addSublist((JFXListView<?>) newNode, this.getIndex()); this.getStyleClass().add("sublist-item"); getListView().setPrefHeight(getListView().getHeight() + newAnimatedHeight + animatedHeight); expandAnimation.setOnFinished((finish) -> { updateClipHeight(newHeight); getListView().setPrefHeight(getListView().getHeight() + newAnimatedHeight); animatedHeight = 0; }); setGraphic(null); boolean isJFXListView = getListView() instanceof JFXListView; if (isJFXListView && ((JFXListView<?>) getListView()).isShowTooltip()) { if (item instanceof Label) { setTooltip(new Tooltip(((Label) item).getText()));
private double getGap() { return (getListView() instanceof JFXListView) ? (((JFXListView<?>) getListView()).isExpanded() ? ((JFXListView<?>) getListView()) .currentVerticalGapProperty() .get() : 0) : 0; } }
listViewProperty().addListener((listObj, oldList, newList) -> { if (newList != null) { if (getListView() instanceof JFXListView) { ((JFXListView<?>) newList).currentVerticalGapProperty().addListener((o, oldVal, newVal) -> { cellRippler.rippler.setClip(null); if (newVal.doubleValue() != 0) { playExpandAnimation = true; getListView().requestLayout(); } else { gapAnimation.setOnFinished((finish) -> { requestLayout(); Platform.runLater(() -> getListView().requestLayout()); });
((JFXListView<?>) getListView()).addSublist((JFXListView<?>) newNode, this.getIndex()); this.getStyleClass().add("sublist-item"); getListView().setPrefHeight(getListView().getHeight() + newAnimatedHeight + animatedHeight); expandAnimation.setOnFinished((finish) -> { updateClipHeight(newHeight); getListView().setPrefHeight(getListView().getHeight() + newAnimatedHeight); animatedHeight = 0; }); setGraphic(null); boolean isJFXListView = getListView() instanceof JFXListView; if (isJFXListView && ((JFXListView<?>) getListView()).isShowTooltip()) { if (item instanceof Label) { setTooltip(new Tooltip(((Label) item).getText()));