T
- the type of the value wrapped by the Property
public class ObjectPropertyNestingBuilder<T> extends Object
Property
.
Because the wrapped value might contain properties of its own, nesting is possible (e.g. with
nest
).
Type | Property and Description |
---|---|
NestedObjectProperty<T> |
build
Creates a nested property from this builder's settings.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractNestingBuilderOnObservable.NestingConstructionKit
An editable class which can be used to collect all instances needed to call
new Nesting(...) . |
Modifier and Type | Method and Description |
---|---|
NestedChangeListenerHandle<T> |
addListener(javafx.beans.value.ChangeListener<? super T> listener)
Adds the specified change listener to the nesting hierarchy's inner
ObservableValue . |
NestedInvalidationListenerHandle |
addListener(javafx.beans.InvalidationListener listener)
Adds the specified invalidation listener to the nesting hierarchy's inner
Observable . |
Nesting<O> |
buildNesting()
Creates a new nesting from this builder's settings.
|
NestedObjectProperty<T> |
buildProperty()
Creates a nested property from this builder's settings.
|
NestedObjectPropertyBuilder<T> |
buildPropertyWithBuilder()
Returns a nested object property builder which can be used to define the new property's attributes before
building it.
|
<N> ObjectPropertyNestingBuilder<N> |
nest(NestingStep<T,javafx.beans.property.Property<N>> nestingStep)
Usability method which simply calls
nestProperty . |
BooleanPropertyNestingBuilder |
nestBooleanProperty(NestingStep<T,javafx.beans.property.BooleanProperty> nestingStep)
Returns a builder for nestings whose inner observable is a
BooleanProperty . |
DoublePropertyNestingBuilder |
nestDoubleProperty(NestingStep<T,javafx.beans.property.DoubleProperty> nestingStep)
Returns a builder for nestings whose inner observable is a
DoubleProperty . |
FloatPropertyNestingBuilder |
nestFloatProperty(NestingStep<T,javafx.beans.property.FloatProperty> nestingStep)
Returns a builder for nestings whose inner observable is a
FloatProperty . |
IntegerPropertyNestingBuilder |
nestIntegerProperty(NestingStep<T,javafx.beans.property.IntegerProperty> nestingStep)
Returns a builder for nestings whose inner observable is an
IntegerProperty . |
LongPropertyNestingBuilder |
nestLongProperty(NestingStep<T,javafx.beans.property.LongProperty> nestingStep)
Returns a builder for nestings whose inner observable is a
LongProperty . |
ObservableNestingBuilder |
nestObservable(NestingStep<T,javafx.beans.Observable> nestingStep)
Returns a builder for nestings whose inner observable is an
Observable . |
<N> ObservableNumberValueNestingBuilder |
nestObservableNumberValue(NestingStep<T,javafx.beans.value.ObservableNumberValue> nestingStep)
Returns a builder for nestings whose inner observable is an
ObservableNumberValue . |
<N> ObservableValueNestingBuilder<N> |
nestObservableValue(NestingStep<T,javafx.beans.value.ObservableValue<N>> nestingStep)
Returns a builder for nestings whose inner observable is an
ObservableValue . |
<N> ObjectPropertyNestingBuilder<N> |
nestProperty(NestingStep<T,javafx.beans.property.Property<N>> nestingStep)
Returns a builder for nestings whose inner observable is a
Property . |
StringPropertyNestingBuilder |
nestStringProperty(NestingStep<T,javafx.beans.property.StringProperty> nestingStep)
Returns a builder for nestings whose inner observable is a
StringProperty . |
public NestedObjectProperty<T> buildProperty
public ObservableNestingBuilder nestObservable(NestingStep<T,javafx.beans.Observable> nestingStep)
Observable
. The created nestings depend on
this builder's outer observable and nesting steps and adds the specified step as the next one.nestingStep
- the function which performs the nesting step from one observable to the nextObservableNestingBuilder
which builds a nesting from this builder's settings and the specified
nesting stepspublic <N> ObservableValueNestingBuilder<N> nestObservableValue(NestingStep<T,javafx.beans.value.ObservableValue<N>> nestingStep)
ObservableValue
. The created nestings depend
on this builder's outer observable and nesting steps and adds the specified step as the next one.N
- the type wrapped by the created nesting buildernestingStep
- the function which performs the nesting step from one observable to the nextObservableValueNestingBuilder
which builds a nesting from this builder's settings and the
specified nesting stepspublic <N> ObservableNumberValueNestingBuilder nestObservableNumberValue(NestingStep<T,javafx.beans.value.ObservableNumberValue> nestingStep)
ObservableNumberValue
. The created nestings
depend on this builder's outer observable and nesting steps and adds the specified step as the next one.N
- the type wrapped by the created nesting buildernestingStep
- the function which performs the nesting step from one observable to the nextObservableNumberValueNestingBuilder
which builds a nesting from this builder's settings and
the specified nesting stepspublic <N> ObjectPropertyNestingBuilder<N> nestProperty(NestingStep<T,javafx.beans.property.Property<N>> nestingStep)
Property
. The created nestings depend on this
builder's outer observable and nesting steps and adds the specified step as the next one.N
- the type wrapped by the created nesting buildernestingStep
- the function which performs the nesting step from one observable to the nextObjectPropertyNestingBuilder
which builds a nesting from this builder's settings and the
specified nesting stepspublic <N> ObjectPropertyNestingBuilder<N> nest(NestingStep<T,javafx.beans.property.Property<N>> nestingStep)
nestProperty
.
Returns a builder for nestings whose inner observable is a Property
. The created nestings depend on this
builder's outer observable and nesting steps and adds the specified step as the next one.
N
- the type wrapped by the created nesting buildernestingStep
- the function which performs the nesting step from one observable to the nextObservableValueNestingBuilder
which builds a nesting from this builder's settings and the
specified nesting stepsNullPointerException
- if the specified function is nullpublic BooleanPropertyNestingBuilder nestBooleanProperty(NestingStep<T,javafx.beans.property.BooleanProperty> nestingStep)
BooleanProperty
. The created nestings depend
on this builder's outer observable and nesting steps and adds the specified step as the next one.nestingStep
- the function which performs the nesting step from one observable to the nextBooleanPropertyNestingBuilder
which builds a nesting from this builder's settings and the
specified nesting stepsNullPointerException
- if the specified function is nullpublic IntegerPropertyNestingBuilder nestIntegerProperty(NestingStep<T,javafx.beans.property.IntegerProperty> nestingStep)
IntegerProperty
. The created nestings depend
on this builder's outer observable and nesting steps and adds the specified step as the next one.nestingStep
- the function which performs the nesting step from one observable to the nextIntegerPropertyNestingBuilder
which builds a nesting from this builder's settings and the
specified nesting stepsNullPointerException
- if the specified function is nullpublic LongPropertyNestingBuilder nestLongProperty(NestingStep<T,javafx.beans.property.LongProperty> nestingStep)
LongProperty
. The created nestings depend on
this builder's outer observable and nesting steps and adds the specified step as the next one.nestingStep
- the function which performs the nesting step from one observable to the nextLongPropertyNestingBuilder
which builds a nesting from this builder's settings and the
specified nesting stepsNullPointerException
- if the specified function is nullpublic FloatPropertyNestingBuilder nestFloatProperty(NestingStep<T,javafx.beans.property.FloatProperty> nestingStep)
FloatProperty
. The created nestings depend on
this builder's outer observable and nesting steps and adds the specified step as the next one.nestingStep
- the function which performs the nesting step from one observable to the nextFloatPropertyNestingBuilder
which builds a nesting from this builder's settings and the
specified nesting stepsNullPointerException
- if the specified function is nullpublic DoublePropertyNestingBuilder nestDoubleProperty(NestingStep<T,javafx.beans.property.DoubleProperty> nestingStep)
DoubleProperty
. The created nestings depend on
this builder's outer observable and nesting steps and adds the specified step as the next one.nestingStep
- the function which performs the nesting step from one observable to the nextDoublePropertyNestingBuilder
which builds a nesting from this builder's settings and the
specified nesting stepsNullPointerException
- if the specified function is nullpublic StringPropertyNestingBuilder nestStringProperty(NestingStep<T,javafx.beans.property.StringProperty> nestingStep)
StringProperty
. The created nestings depend on
this builder's outer observable and nesting steps and adds the specified step as the next one.nestingStep
- the function which performs the nesting step from one observable to the nextStringPropertyNestingBuilder
which builds a nesting from this builder's settings and the
specified nesting stepsNullPointerException
- if the specified function is nullpublic NestedObjectProperty<T> buildProperty()
public NestedObjectPropertyBuilder<T> buildPropertyWithBuilder()
NestedObjectPropertyBuilder
public NestedChangeListenerHandle<T> addListener(javafx.beans.value.ChangeListener<? super T> listener)
ObservableValue
.listener
- the added ChangeListener
NestedChangeListenerHandle
which can be used to check the nesting's statepublic Nesting<O> buildNesting()
Nesting
public NestedInvalidationListenerHandle addListener(javafx.beans.InvalidationListener listener)
Observable
.listener
- the added InvalidationListener
NestedInvalidationListenerHandle
which can be used to check the nesting's stateThis documentation is licensed under CC-BY 4.0, attributed to Nicolai Parlog from CodeFX.