All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codefx.libfx.nesting.property.NestedFloatPropertyBuilder Maven / Gradle / Ivy

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