@SuppressWarnings("unchecked") @Override public StyleableProperty<@Nullable DecorationStrategy> getStyleableProperty(StyledTextNode node) { return (StyleableProperty<@Nullable DecorationStrategy>) node.decorationStrategyProperty(); }
/** * Set a new strategy used for decoration * * @param strategy * the strategy */ public final void setDecorationStrategy(final @Nullable DecorationStrategy strategy) { this.decorationStrategyProperty().set(strategy); }
/** * @return strategy used for decoration */ public final @Nullable DecorationStrategy getDecorationStrategy() { return this.decorationStrategyProperty().get(); }
@Override public boolean isSettable(StyledTextNode node) { return !node.decorationStrategyProperty().isBound(); }