Codota Logo
WritableValue.setValue
Code IndexAdd Codota to your IDE (free)

How to use
setValue
method
in
javafx.beans.value.WritableValue

Best Java code snippets using javafx.beans.value.WritableValue.setValue (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: jfoenixadmin/JFoenix

public void applyCloseValues(){
  target.setValue(getCloseValueSupplier().get());
}
origin: jfoenixadmin/JFoenix

public void applyOpenValues() {
  target.setValue(getOpenValueSupplier().get());
}
origin: jfoenixadmin/JFoenix

public void applyEndValues() {
  for (JFXKeyValue keyValue : keyValues) {
    if (keyValue.isValid()) {
      final WritableValue target = keyValue.getTarget();
      if (target != null) {
        final Object endValue = keyValue.getEndValue();
        if (endValue != null && !target.getValue().equals(endValue)) {
          target.setValue(endValue);
        }
      }
    }
  }
}
origin: jfoenixadmin/JFoenix

public void animate(double now) {
  if (now <= currentDuration) {
    for (JFXKeyValue keyValue : keyValues) {
      if (keyValue.isValid()) {
        final WritableValue target = keyValue.getTarget();
        final Object endValue = endValuesMap.get(target);
        if (endValue != null && target != null && !target.getValue().equals(endValue)) {
          target.setValue(keyValue.getInterpolator().interpolate(initialValuesMap.get(target), endValue, now / currentDuration));
        }
      }
    }
  } else {
    if (!finished) {
      finished = true;
      for (JFXKeyValue keyValue : keyValues) {
        if (keyValue.isValid()) {
          final WritableValue target = keyValue.getTarget();
          if (target != null) {
            // set updated end value instead of cached
            final Object endValue = keyValue.getEndValue();
            if (endValue != null) {
              target.setValue(endValue);
            }
          }
        }
      }
      currentDuration = duration;
    }
  }
}
origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.core.databinding

  @SuppressWarnings("unchecked")
  @Override
  protected void doSetValue(Object value) {
    property.setValue((T) value);
  }
};
origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.core.databinding

  @Override
  public void changed(ObservableValue<? extends E> observable, E oldValue, E newValue) {
    if (this.syncing) {
      return;
    }
    try {
      this.syncing = true;
      if (observable == fxObs) {
        dbObs.setValue(newValue);
      } else {
        fxObs.setValue(newValue);
      }
    } finally {
      this.syncing = false;
    }
  }
});
origin: com.jfoenix/jfoenix

public void applyOpenValues() {
  target.setValue(getOpenValueSupplier().get());
}
origin: com.jfoenix/jfoenix

public void applyCloseValues(){
  target.setValue(getCloseValueSupplier().get());
}
origin: com.google.code.validationframework/validationframework-experimental

  @Override
  public void setValue(W w) {
    if (!ValueUtils.areEqual(wrapped.getValue(), w)) {
      wrapped.setValue(w);
    }
  }
}
origin: com.jfoenix/jfoenix

public void applyEndValues() {
  for (JFXKeyValue keyValue : keyValues) {
    if (keyValue.isValid()) {
      final WritableValue target = keyValue.getTarget();
      if (target != null) {
        final Object endValue = keyValue.getEndValue();
        if (endValue != null && !target.getValue().equals(endValue)) {
          target.setValue(endValue);
        }
      }
    }
  }
}
origin: com.canoo.dolphin-platform/dolphin-platform-client-javafx

  @Override
  public <T> Binding to(Property<T> dolphinProperty, Converter<? super T, ? extends S> converter) {
    Assert.requireNonNull(dolphinProperty, "dolphinProperty");
    Assert.requireNonNull(converter, "converter");
    final Subscription subscription = dolphinProperty.onChanged(event -> javaFxValue.setValue(converter.convert(dolphinProperty.get())));
    javaFxValue.setValue(converter.convert(dolphinProperty.get()));
    return () -> subscription.unsubscribe();
  }
}
origin: dev.rico/rico-remoting-client-javafx

  @Override
  public <T> Binding to(final Property<T> remotingProperty, final Converter<? super T, ? extends S> converter) {
    Assert.requireNonNull(remotingProperty, "remotingProperty");
    Assert.requireNonNull(converter, "converter");
    final Subscription subscription = remotingProperty.onChanged(event -> javaFxValue.setValue(converter.convert(remotingProperty.get())));
    javaFxValue.setValue(converter.convert(remotingProperty.get()));
    return () -> subscription.unsubscribe();
  }
}
origin: com.jfoenix/jfoenix

public void animate(double now) {
  if (now <= currentDuration) {
    for (JFXKeyValue keyValue : keyValues) {
      if (keyValue.isValid()) {
        final WritableValue target = keyValue.getTarget();
        final Object endValue = endValuesMap.get(target);
        if (endValue != null && target != null && !target.getValue().equals(endValue)) {
          target.setValue(keyValue.getInterpolator().interpolate(initialValuesMap.get(target), endValue, now / currentDuration));
        }
      }
    }
  } else {
    if (!finished) {
      finished = true;
      for (JFXKeyValue keyValue : keyValues) {
        if (keyValue.isValid()) {
          final WritableValue target = keyValue.getTarget();
          if (target != null) {
            // set updated end value instead of cached
            final Object endValue = keyValue.getEndValue();
            if (endValue != null) {
              target.setValue(endValue);
            }
          }
        }
      }
      currentDuration = duration;
    }
  }
}
origin: org.graniteds/granite-client-javafx

  convertedValue = convert ? convert(value) : value;
writableValue.setValue(convertedValue);
origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.core.databinding

/**
 * Bind an javafx observable value to a eclipse db observable
 *
 * @param fxObs
 *            the javafx observable
 * @param dbObs
 *            the eclipse db observable
 * @param initialSync
 *            the initial sync direction
 * @param <E>
 *            the value type
 * @param <F>
 *            the observable value type
 */
@SuppressWarnings("unchecked")
public static <E, F extends ObservableValue<E> & WritableValue<E>> void bind(F fxObs, IObservableValue dbObs,
    InitialSync initialSync) {
  if (initialSync == InitialSync.FX_TO_DB) {
    dbObs.setValue(fxObs.getValue());
  } else {
    fxObs.setValue((E) dbObs.getValue());
  }
  ObservableWritableValue<E> wrapped = adapt(dbObs);
  do_bind(fxObs, wrapped);
}
origin: org.graniteds/granite-client-javafx

writableValue.setValue(value);
javafx.beans.valueWritableValuesetValue

Popular methods of WritableValue

  • getValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getContentResolver (Context)
  • findViewById (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JComboBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now