
org.codefx.libfx.nesting.property.NestedFloatPropertyBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of LibFX Show documentation
Show all versions of LibFX Show documentation
LibFX provides usability classes for Java and JavaFX.
The newest version!
package org.codefx.libfx.nesting.property;
import javafx.beans.property.FloatProperty;
import org.codefx.libfx.nesting.Nesting;
/**
* A builder for a {@link NestedFloatProperty} which is bound to the {@link Nesting#innerObservableProperty()
* innerObservable} of a {@link Nesting}.
*/
public class NestedFloatPropertyBuilder extends
AbstractNestedPropertyBuilder {
// #begin CONSTRUCTION
/**
* Creates a new builder which uses the specified nesting.
*
* @param nesting
* the nesting which will be used for all nested properties
*/
private NestedFloatPropertyBuilder(Nesting nesting) {
super(nesting);
}
/**
* Creates a new builder which uses the specified nesting.
*
* @param nesting
* the nesting which will be used for all nested properties
* @return a new instance of {@link NestedFloatPropertyBuilder}
*/
public static NestedFloatPropertyBuilder forNesting(Nesting nesting) {
return new NestedFloatPropertyBuilder(nesting);
}
//#end CONSTRUCTION
// #begin METHODS
@Override
public NestedFloatProperty build() {
return new NestedFloatProperty(getNesting(), getInnerObservableMissingBehavior(), getBean(), getName());
}
//#end METHODS
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy