
org.codefx.libfx.nesting.ObservableNumberValueNestingBuilder Maven / Gradle / Ivy
Show all versions of LibFX Show documentation
package org.codefx.libfx.nesting;
import javafx.beans.value.ObservableNumberValue;
/**
* A builder for all kinds of nested functionality whose inner observable is an {@link ObservableNumberValue}.
*
* Note that an {@code ObservableNumberValue} provides no way do write a value. It is hence not possible to create
* nestings which depend on writing a value, e.g. nested properties.
*/
public class ObservableNumberValueNestingBuilder extends
AbstractNestingBuilderOnObservableValue {
// #begin CONSTRUCTION
/**
* Creates a new nesting builder which acts as the outer builder.
*
* @param outerObservable
* the outer observable upon which the constructed nesting depends
*/
ObservableNumberValueNestingBuilder(ObservableNumberValue outerObservable) {
super(outerObservable);
}
/**
* Creates a new nesting builder which acts as a nested builder.
*
* @param
* the type the previous builder wraps
* @param previousNestedBuilder
* the previous builder
* @param nestingStep
* the function which performs the nesting step from one observable to the next
*/
ObservableNumberValueNestingBuilder(
AbstractNestingBuilderOnObservableValue
previousNestedBuilder,
NestingStep
nestingStep) {
super(previousNestedBuilder, nestingStep);
}
//#end CONSTRUCTION
}