Difference between revisions of "Tabular Data Widget"

From Gcube Wiki
Jump to: navigation, search
(Tabular Data Model)
(Tabular Data Model)
Line 17: Line 17:
 
The '''column definition''' keeps some information about the described column like ''id'', ''label'', the type of data in the column and so on. The '''table content''' is returned by the datasource as JSON object represented as Java String.
 
The '''column definition''' keeps some information about the described column like ''id'', ''label'', the type of data in the column and so on. The '''table content''' is returned by the datasource as JSON object represented as Java String.
  
The table definition is retrieved by the TDW servlet through a '''DataSource'''. A DataSource, one per table, is the gateway to the table meta information and table. The datasource are generated by the '''DataSourceFactory'''.
+
The table definition is retrieved by the TDW servlet through a '''DataSource'''. A DataSource is the gateway to the single table meta information and data. The datasource are maintained by the '''DataSourceFactory''' and are retrieved by id.

Revision as of 13:51, 24 August 2012

The Tabular Data Widget (TDW) is a GWT component for tabular data visualization and manipulation.

The TDW components extends the GXT Live grid component enhancing it with:

  • dynamic data model
  • custom data source definition
  • common tabular data operations
  • graph visualization

Tabular Data Widget Architecture

Figure 1. The Tabular Data Widget Architecture

The TDW is composed by several GWT components, in the figure grouped as TDW widget, and two HTTP servlet, one for the GWT RPC mechanism and another as JSON provider, both represented as TDW servlet. The TDW servlet communicates with the available datasources in order to retrieve the necessary information for the tabular data visualization. Both modules, TDW widget and servlet, are integrated by the hosting application in order to use the TDW.

Tabular Data Model

The TDW visualizes tables. A table is defined though a table definition. The table definition describes some essential information about the table (id, name, etc) and it keeps a description of each column belonging to the table. The column definition keeps some information about the described column like id, label, the type of data in the column and so on. The table content is returned by the datasource as JSON object represented as Java String.

The table definition is retrieved by the TDW servlet through a DataSource. A DataSource is the gateway to the single table meta information and data. The datasource are maintained by the DataSourceFactory and are retrieved by id.