Mercurial > hg > STI-GWT
view src/econnect/wp3_3/client/core/DataSet.java @ 68:8b58d9bc0bb6 trimmed_data
add functionality for additional tabular data from the description field (work in progress)
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 03 Jan 2013 18:43:28 +0100 |
parents | 6ec1ab4f897a |
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; }-*/; }