public method IO2GTableManagerListener.onStatusChanged
Brief
Processes notifications about the table manager status changes.
Declaration | ||||
|
Parameters | |
status |
A new status of the table manager. During the process of tables loading, the value of this parameter changes.
For the list of the parameter possible values, refer to the
|
tableManager |
An instance of the table manager. The instance can be obtained by calling the
|
Details
In order to process notifications about the table manager status changes, you must create a class implementing the
IO2GTableManagerListener interface and pass an instance of this class to the
O2GSession
.useTableManager
method.
mSession.useTableManager(O2GTableManagerMode.YES, managerListener);
For the method implementation details, see the example below.
Example
Process notifications about the table manager status change [hide]
// Implementation of IO2GTableManagerListener interface public method onStatusChanged public void onStatusChanged(O2GTableManagerStatus status, O2GTableManager manager) { mLastStatus = status; switch(status) { case TABLES_LOADED: System.out.println("\nAll tables are loaded"); synchronized (obj) { obj.notify(); } break; case TABLES_LOAD_FAILED: System.out.println("\nTables loading failed"); synchronized (obj){ obj.notify(); } break; case TABLES_LOADING: break; } }
Declared in IO2GTableManagerListener