public class TabularDataX extends Object
| Constructor and Description |
|---|
TabularDataX()
Creates a new
TabularDataX object. |
TabularDataX(String defaultDataSourceFactoryName)
Creates a new {@link TabularDataX object setting the default {
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFailureHandler(FailureEvent.FailureEventHandler handler)
Add a new
FailureEvent.FailureEventHandler. |
void |
addGridReadyHandler(GridReadyEvent.GridReadyEventHandler handler)
Add a new
FailureEvent.FailureEventHandler. |
void |
closeTable() |
String |
getColumnLocalId(int i) |
String |
getColumnName(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) |
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(FailureEvent.FailureEventHandler handler)
FailureEvent.FailureEventHandler.handler - public void addGridReadyHandler(GridReadyEvent.GridReadyEventHandler handler)
FailureEvent.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 getColumnName(int i)
i - index of column in ColumnModelpublic String getColumnLocalId(int i)
i - index of column in ColumnModelCopyright © 2015. All Rights Reserved.