Mercurial > hg > STI-GWT
view src/econnect/wp3_3/client/core/DataSet.java @ 89:3700846b8590 trimmed_data tip
bug: removed leading / in url
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 15 Mar 2013 12:53:55 +0100 |
parents | 8b58d9bc0bb6 |
children |
line wrap: on
line source
package econnect.wp3_3.client.core; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArray; import com.google.gwt.core.client.JsArrayString; /** * Implementation of the wrapper for the DataSet class of the STI JavaScript source */ public class DataSet extends JavaScriptObject { protected DataSet(){ } /** * Initializes a DataSet element * * @param term the term identifier for this data set * @return a DataSet object */ public static native DataSet createDataSet( String term ) /*-{ return new $wnd.DataSet( [], term, 0 ); }-*/; /** * Getter for the term identifier of the DataSet * * @return the term identifier of data set */ public final native String getTermIdentifier() /*-{ return this.termIdentifier; }-*/; public final native String getSource() /*-{ return this.source.toString(); }-*/; /** * Adds an object to this DataSet * * @param object the data object to add */ public final native void addObject( DataObject object ) /*-{ this.objects.push(object); }-*/; /** * Getter for the Array of DataObjects of this DataSet * * @return the array of data objects */ public final native JsArray<DataObject> getObjects() /*-{ return this.objects; }-*/; /** * Getter for the Array of (additional) column names in the * description fields * * @return the array of column names (Strings) */ public final native JsArrayString getDescriptionDataColumns() /*-{ return this.descriptionDataColumns; }-*/; }