public boolean isOverlayClose() { return overlayClose.get(); }
public boolean isCacheContainer() { return cacheContainer.get(); }
public final boolean isHideOnEscape() { return hideOnEscape.get(); }
@Deprecated public boolean isExpanded() { return expandedProperty.get(); }
/** * @return whether customMaximizeProperty is active or not */ public final boolean isCustomMaximize() { return this.customMaximizeProperty().get(); }
public final boolean isShowTooltip() { return this.showTooltipProperty().get(); }
public final boolean isOverLayVisible() { return this.overLayVisibleProperty().get(); }
public final boolean isOverlayClose() { return this.overlayCloseProperty().get(); }
public final boolean is24HourView() { return _24HourViewProperty().get(); }
@Override protected Node createUndecoratedEditor() { final CheckBox box = new CheckBox(); box.setSelected( property.get() ); property.bindBidirectional(box.selectedProperty() ); return box; } }
@Override public void prepareWorkspace(SplitPane parent, Node workspace) { if (!workspaceVisible.get()) { parent.getItems().remove(workspace); } workspaceVisible.addListener((ob, o, visible) -> { if (visible) { parent.getItems().add(0, workspace); } else { parent.getItems().remove(workspace); } }); }
@Override public void prepareOutput(SplitPane parent, Node output) { if (!outputVisible.get()) { parent.getItems().remove(output); } outputVisible.addListener((ob, o, visible) -> { if (visible) { parent.getItems().add(output); } else { parent.getItems().remove(output); } }); }
@Override public void prepareProjectTree(SplitPane parent, Node projectTree) { if (!projectTreeVisible.get()) { parent.getItems().remove(projectTree); } projectTreeVisible.addListener((ob, o, visible) -> { if (visible) { parent.getItems().add(0, projectTree); } else { parent.getItems().remove(projectTree); } }); }
public final boolean isSelected() { return selected.get(); } }
public final boolean isDisplayText() { return displayText.get(); }
public final boolean isDisplayText() { return displayText.get(); }
private void initialize() { this.setVisible(false); this.getStyleClass().add(DEFAULT_STYLE_CLASS); this.transitionType.addListener((o, oldVal, newVal) -> { animation = getShowAnimation(transitionType.get()); }); contentHolder = new StackPane(); contentHolder.setBackground(new Background(new BackgroundFill(Color.WHITE, new CornerRadii(2), null))); JFXDepthManager.setDepth(contentHolder, 4); contentHolder.setPickOnBounds(false); // ensure stackpane is never resized beyond it's preferred size contentHolder.setMaxSize(Region.USE_PREF_SIZE, Region.USE_PREF_SIZE); this.getChildren().add(contentHolder); this.getStyleClass().add("jfx-dialog-overlay-pane"); StackPane.setAlignment(contentHolder, Pos.CENTER); this.setBackground(new Background(new BackgroundFill(Color.rgb(0, 0, 0, 0.1), null, null))); // close the dialog if clicked on the overlay pane if (overlayClose.get()) { this.addEventHandler(MouseEvent.MOUSE_PRESSED, closeHandler); } // prevent propagating the events to overlay pane contentHolder.addEventHandler(MouseEvent.ANY, e -> e.consume()); }
expandedProperty.set(!expandedProperty.get()); double newAnimatedHeight = newNode.prefHeight(-1) * (expandedProperty.get() ? 1 : -1); double newHeight = expandedProperty.get() ? this.getHeight() + newAnimatedHeight : this.prefHeight( -1); double contentHeight = expandedProperty.get() ? newAnimatedHeight : 0; if (expandedProperty.get()) { updateClipHeight(newHeight); getListView().setPrefHeight(getListView().getHeight() + newAnimatedHeight + animatedHeight); int opacity = expandedProperty.get() ? 1 : 0; expandAnimation = new Timeline(new KeyFrame(Duration.millis(320), new KeyValue(sublistContainer.minHeightProperty(), Interpolator.EASE_BOTH))); if (!expandedProperty.get()) { expandAnimation.setOnFinished((finish) -> { updateClipHeight(newHeight);
byNode.setCursor(Cursor.HAND); if (inDrag.get()) { stage.hide();