JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
org.codefx.libfx.nesting

Class NestingObserver.NestingObserverBuilder<O extends javafx.beans.Observable>

  • Type Parameters:
    O - the type of the nesting hierarchy's inner Observable
    Enclosing class:
    NestingObserver<O extends javafx.beans.Observable>


    public static class NestingObserver.NestingObserverBuilder<O extends javafx.beans.Observable>
    extends Object 
    Builds a NestingObserver.
    • Method Detail

      • withOldInnerObservable

        public NestingObserver.NestingObserverBuilder<O> withOldInnerObservable(Consumer<? super O> oldInnerObservableConsumer)
        The specified method will be executed when the innerObservable changes and the old observable was present.
        Parameters:
        oldInnerObservableConsumer - the executed method; its argument is the old inner observable
        Returns:
        this builder for fluent calls
      • withNewInnerObservable

        public NestingObserver.NestingObserverBuilder<O> withNewInnerObservable(Consumer<? super O> newInnerObservableConsumer)
        The specified method will be executed when the innerObservable changes and the new observable is present.
        Parameters:
        newInnerObservableConsumer - the executed method; its argument is the new inner observable
        Returns:
        this builder for fluent calls
      • whenInnerObservableChanges

        public NestingObserver.NestingObserverBuilder<O> whenInnerObservableChanges(BiConsumer<Boolean,Boolean> innerObservableChanges)
        The specified method will be executed when the innerObservable changes.
        Parameters:
        innerObservableChanges - the executed method; its argument are two Booleans indicating whether the old and new inner observables are present.
        Returns:
        this builder for fluent calls
      • observe

        public void observe()
        Builds a observer from this builder's settings.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

This documentation is licensed under CC-BY 4.0, attributed to Nicolai Parlog from CodeFX.

AltStyle によって変換されたページ (->オリジナル) /