@Override public boolean isSettable(JFXAutoCompletePopup.CSSBridge bridge) { return bridge.popup.fixedCellSize == null || !bridge.popup.fixedCellSize.isBound(); } @Override public StyleableProperty<Number> getStyleableProperty(JFXAutoCompletePopup.CSSBridge bridge) {
@Override protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) { final int itemsCount = getSkinnable().getItems().size(); if (getSkinnable().maxHeightProperty().isBound() || itemsCount <= 0) { return super.computePrefHeight(width, topInset, rightInset, bottomInset, leftInset); } final double fixedCellSize = getSkinnable().getFixedCellSize(); double computedHeight = fixedCellSize != Region.USE_COMPUTED_SIZE ? fixedCellSize * itemsCount + snapVerticalInsets() : estimateHeight(); double height = super.computePrefHeight(width, topInset, rightInset, bottomInset, leftInset); if (height > computedHeight) { height = computedHeight; } if (getSkinnable().getMaxHeight() > 0 && computedHeight > getSkinnable().getMaxHeight()) { return getSkinnable().getMaxHeight(); } return height; }
@Override public boolean isSettable(GridView<?> n) { return n.horizontalCellSpacing == null || !n.horizontalCellSpacing.isBound(); }
@Override public boolean isSettable(RangeSlider n) { return n.majorTickUnit == null || !n.majorTickUnit.isBound(); }
@Override public boolean isSettable(RangeSlider n) { return n.blockIncrement == null || !n.blockIncrement.isBound(); }
@Override public boolean isSettable(ResizeableFramePane n) { return (n.resizeHandleSize == null) || !n.resizeHandleSize.isBound(); }
@Override public boolean isSettable(GridView<?> n) { return n.verticalCellSpacing == null || !n.verticalCellSpacing.isBound(); }
@Override public boolean isSettable(JFXAutoCompletePopup.CSSBridge bridge) { return bridge.popup.fixedCellSize == null || !bridge.popup.fixedCellSize.isBound(); } @Override public StyleableProperty<Number> getStyleableProperty(JFXAutoCompletePopup.CSSBridge bridge) {
@Override public boolean isSettable(FontIconView n) { return n.iconFontSize == null || !n.iconFontSize.isBound(); }
@Override public boolean isSettable(StyledTextArea n) { return n.fixedLineHeight == null || !n.fixedLineHeight.isBound(); }
@Override public boolean isBound() { return delegate.isBound(); }
@Override public boolean isSettable(GridView<?> n) { return n.cellHeight == null || !n.cellHeight.isBound(); }
@Override public boolean isSettable(ResizeableFramePane n) { return (n.resizeHandleSize == null) || !n.resizeHandleSize.isBound(); }
@Override public boolean isSettable(CalendarCategoryAxis n) { return n.startMargin == null || !n.startMargin.isBound(); }
@Override public boolean isSettable(CalendarCategoryAxis n) { return n.endMargin == null || !n.endMargin.isBound(); }
@Override public boolean isSettable(GridView<?> n) { return n.cellWidth == null || !n.cellWidth.isBound(); }
@Override public boolean isSettable(ToggleSwitch toggleSwitch) { final ToggleSwitchSkin skin = (ToggleSwitchSkin) toggleSwitch.getSkin(); return skin.thumbMoveAnimationTime == null || !skin.thumbMoveAnimationTime.isBound(); }
@Override public void handle(ActionEvent e) { DoubleProperty vp = ResetableGauge.this.valueProperty(); if (vp.isBound()) { // a bound value can not be set } else { setValue(0); } } });
/** * Sets the high value for the range slider, which may or may not be clamped * to be within the allowable range as specified by the * {@link #minProperty() min} and {@link #maxProperty() max} properties. */ public final void setHighValue(double d) { if (!highValueProperty().isBound()) highValueProperty().set(d); }
private void updateRatingFromMouseEvent(MouseEvent event) { Rating control = getSkinnable(); if (! control.ratingProperty().isBound()) { Point2D mouseLocation = new Point2D(event.getSceneX(), event.getSceneY()); control.setRating(calculateRating(mouseLocation)); } }