001 package com.google.gwt.maps.client.services; 002 003 import com.google.gwt.core.client.JavaScriptObject; 004 import com.google.gwt.core.client.JsArray; 005 006 /** 007 * A row of the response to a DistanceMatrixService request, consisting of a sequence of DistanceMatrixResponseElements, one for each corresponding destination address. 008 * <br><br> 009 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#DistanceMatrixResponseRow">DistanceMatrixResponseRow API Doc</a> 010 */ 011 public class DistanceMatrixResponseRow extends JavaScriptObject { 012 013 protected DistanceMatrixResponseRow() {} 014 015 public static final DistanceMatrixResponseRow newInstance() { 016 return JavaScriptObject.createObject().cast(); 017 } 018 019 /** 020 * The row's elements, corresponding to the destination addresses. 021 * @param elements 022 */ 023 public final native void setElements(JsArray<DistanceMatrixResponseElement> elements) /*-{ 024 this.elements = elements; 025 }-*/; 026 027 /** 028 * The row's elements, corresponding to the destination addresses. 029 */ 030 public final native JsArray<DistanceMatrixResponseElement> getElements() /*-{ 031 return this.elements; 032 }-*/; 033 034 035 036 }