Exemple #1
0
  @Override
  public Double apply(final Object context, final Object d, final int index) {

    JSObject datum = (JSObject) d;
    Value value = new Value(webEngine, datum);
    Circle circle = value.<Circle>as(Circle.class);
    if (circle == null) {
      return null;
    }
    Double result = circle.y;
    return result;
  }
 /**
  * Cast the given value to the correct type.
  *
  * @param v
  * @return
  */
 public T cast(final Value v) {
   return v.as();
 }