public class TabularDataX extends Object
| Modifier and Type | Field and Description |
|---|---|
protected TabularDataXController |
controller |
protected String |
defaultDataSourceFactoryName |
protected com.google.gwt.event.shared.EventBus |
eventBus |
protected TabularDataXGridPanel |
gridPanel |
protected static int |
seed |
protected int |
tdSessionId |
| Constructor and Description |
|---|
TabularDataX()
Creates a new
TabularDataX object. |
TabularDataX(String defaultDataSourceFactoryName)
Creates a new TabularDataX object setting the default {@link DataSourceXFactory} name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFailureHandler(FailureEventHandler handler)
Add a new
FailureEventHandler. |
void |
addRow(ArrayList<String> rows) |
void |
closeTable() |
String |
getColumnId(int i) |
TableDefinition |
getCurrentTable()
Returns the current table definition.
|
String |
getDefaultDataSourceFactoryName() |
TabularDataXGridPanel |
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) |
protected static int seed
protected int tdSessionId
protected String defaultDataSourceFactoryName
protected com.google.gwt.event.shared.EventBus eventBus
protected TabularDataXController controller
protected TabularDataXGridPanel gridPanel
public TabularDataX(String defaultDataSourceFactoryName)
defaultDataSourceFactoryName - the default DataSourceXFactory name.public TabularDataX()
TabularDataX object.public String getDefaultDataSourceFactoryName()
public void setDefaultDataSourceFactoryName(String defaultDataSourceFactoryName)
defaultDataSourceFactoryName - the defaultDataSourceFactoryName to setpublic TabularDataXGridPanel getGridPanel()
public void addFailureHandler(FailureEventHandler handler)
FailureEventHandler.handler - public void openTable(TableId id)
id - the table id.public void openTable(String tableKey)
DataSourceXFactory name is used.tableKey - the table key.public TableDefinition getCurrentTable()
null if no table is open.public void getTableDefinition(TableId tableId, com.google.gwt.user.client.rpc.AsyncCallback<TableDefinition> callback)
TableDefinition for the specified TableId.tableId - the table id.callback - the AsyncCallback called when the TableDefinition is retrieved.public void getTableDefinition(String tableKey, com.google.gwt.user.client.rpc.AsyncCallback<TableDefinition> callback)
public void closeTable()
public String getColumnId(int i)
i - index of column in ColumnModelCopyright © 2014. All Rights Reserved.