org.gcube.portlets.user.tdw.client
Class TabularData

java.lang.Object
  extended by org.gcube.portlets.user.tdw.client.TabularData

public class TabularData
extends Object

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected  TabularDataController controller
           
protected  String defaultDataSourceFactoryName
           
protected  com.google.gwt.event.shared.EventBus eventBus
           
protected  TabularDataGridPanel gridPanel
           
protected static int seed
           
protected  int tdSessionId
           
 
Constructor Summary
TabularData()
          Creates a new TabularData object.
TabularData(String defaultDataSourceFactoryName)
          Creates a new TabularData object setting the default {@link DataSourceFactory} name.
 
Method Summary
 void addFailureHandler(FailureEventHandler handler)
          Add a new FailureEventHandler.
 void closeTable()
           
 TableDefinition getCurrentTable()
          Returns the current table definition.
 String getDefaultDataSourceFactoryName()
           
 TabularDataGridPanel getGridPanel()
           
 void getTableDefinition(String tableKey, com.google.gwt.user.client.rpc.AsyncCallback<TableDefinition> callback)
           
 void getTableDefinition(TableId tableId, com.google.gwt.user.client.rpc.AsyncCallback<TableDefinition> callback)
          Returns the TableDefinition for the specified TableId.
protected  TableId getTableId(String tableKey)
           
 void openTable(String tableKey)
          Opens a new table.
 void openTable(TableId id)
          Opens a new table.
 void setDefaultDataSourceFactoryName(String defaultDataSourceFactoryName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

seed

protected static int seed

tdSessionId

protected int tdSessionId

defaultDataSourceFactoryName

protected String defaultDataSourceFactoryName

eventBus

protected com.google.gwt.event.shared.EventBus eventBus

controller

protected TabularDataController controller

gridPanel

protected TabularDataGridPanel gridPanel
Constructor Detail

TabularData

public TabularData(String defaultDataSourceFactoryName)
Creates a new TabularData object setting the default {@link DataSourceFactory} name.

Parameters:
defaultDataSourceFactoryName - the default DataSourceFactory name.

TabularData

public TabularData()
Creates a new TabularData object.

Method Detail

getDefaultDataSourceFactoryName

public String getDefaultDataSourceFactoryName()
Returns:
the defaultDataSourceFactoryName

setDefaultDataSourceFactoryName

public void setDefaultDataSourceFactoryName(String defaultDataSourceFactoryName)
Parameters:
defaultDataSourceFactoryName - the defaultDataSourceFactoryName to set

getGridPanel

public TabularDataGridPanel getGridPanel()

addFailureHandler

public void addFailureHandler(FailureEventHandler handler)
Add a new FailureEventHandler.

Parameters:
handler -

openTable

public void openTable(TableId id)
Opens a new table.

Parameters:
id - the table id.

openTable

public void openTable(String tableKey)
Opens a new table. The default DataSourceFactory name is used.

Parameters:
tableKey - the table key.

getCurrentTable

public TableDefinition getCurrentTable()
Returns the current table definition.

Returns:
the table description, null if no table is open.

getTableDefinition

public void getTableDefinition(TableId tableId,
                               com.google.gwt.user.client.rpc.AsyncCallback<TableDefinition> callback)
Returns the TableDefinition for the specified TableId.

Parameters:
tableId - the table id.
callback - the AsyncCallback called when the TableDefinition is retrieved.

getTableDefinition

public void getTableDefinition(String tableKey,
                               com.google.gwt.user.client.rpc.AsyncCallback<TableDefinition> callback)

closeTable

public void closeTable()

getTableId

protected TableId getTableId(String tableKey)


Copyright © 2013. All Rights Reserved.