@Override protected void layoutChildren() { super.layoutChildren(); cellRippler.resizeRelocate(0, 0, getWidth(), getHeight()); double gap = getGap(); clip = new Rectangle(0, gap / 2, getWidth(), getHeight() - gap); setClip(clip); } else { this.setTranslateY(-gap / 2 + (-gap * (getIndex()))); clip.setY(gap / 2); clip.setHeight(getHeight() - gap); gapAnimation = new Timeline(new KeyFrame(Duration.millis(240), new KeyValue(this.translateYProperty(), } else if (selectionChanged) { clip.setY(0); clip.setHeight(getHeight()); gapAnimation = new Timeline( new KeyFrame(Duration.millis(240), new KeyValue(clip.yProperty(), gap / 2, Interpolator.EASE_BOTH), new KeyValue(clip.heightProperty(), getHeight() - gap, Interpolator.EASE_BOTH) )); clip.setHeight(getHeight() - gap); clip.setHeight(getHeight());
double newHeight = expandedProperty.get() ? this.getHeight() + newAnimatedHeight : this.prefHeight( -1);
@Override protected void layoutChildren() { super.layoutChildren(); cellRippler.resizeRelocate(0, 0, getWidth(), getHeight()); double gap = getGap(); clip = new Rectangle(0, gap / 2, getWidth(), getHeight() - gap); setClip(clip); } else { this.setTranslateY(-gap / 2 + (-gap * (getIndex()))); clip.setY(gap / 2); clip.setHeight(getHeight() - gap); gapAnimation = new Timeline(new KeyFrame(Duration.millis(240), new KeyValue(this.translateYProperty(), } else if (selectionChanged) { clip.setY(0); clip.setHeight(getHeight()); gapAnimation = new Timeline( new KeyFrame(Duration.millis(240), new KeyValue(clip.yProperty(), gap / 2, Interpolator.EASE_BOTH), new KeyValue(clip.heightProperty(), getHeight() - gap, Interpolator.EASE_BOTH) )); clip.setHeight(getHeight() - gap); clip.setHeight(getHeight());
double newHeight = expandedProperty.get() ? this.getHeight() + newAnimatedHeight : this.prefHeight( -1);