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

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

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