
org.codefx.libfx.nesting.property.NestedIntegerPropertyBuilder 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.IntegerProperty;
import org.codefx.libfx.nesting.Nesting;
/**
* A builder for a {@link NestedIntegerProperty} which is bound to the {@link Nesting#innerObservableProperty()
* innerObservable} of a {@link Nesting}.
*/
public class NestedIntegerPropertyBuilder 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 NestedIntegerPropertyBuilder(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 NestedIntegerPropertyBuilder}
*/
public static NestedIntegerPropertyBuilder forNesting(Nesting nesting) {
return new NestedIntegerPropertyBuilder(nesting);
}
//#end CONSTRUCTION
// #begin METHODS
@Override
public NestedIntegerProperty build() {
return new NestedIntegerProperty(getNesting(), getInnerObservableMissingBehavior(), getBean(), getName());
}
//#end METHODS
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy