public class StateSaver extends AbstractMapComponent
AbstractMapComponent.OnAllComponentsCreatedCallback
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADD_CLASSIFICATION_ACTION |
static java.lang.String |
COLUMN_EVENT |
static java.lang.String |
COLUMN_ID |
static java.lang.String |
COLUMN_JSON |
static java.lang.String |
COLUMN_LAST_UPDATE |
static java.lang.String |
COLUMN_POINT_GEOM |
static java.lang.String |
COLUMN_TYPE |
static java.lang.String |
COLUMN_UID |
static java.lang.String |
COLUMN_VISIBLE |
static java.lang.String |
TABLE_COTEVENTS |
static java.lang.String |
TAG |
Constructor and Description |
---|
StateSaver() |
Modifier and Type | Method and Description |
---|---|
static StateSaver |
getInstance() |
static int |
getQueryOrder(java.lang.String type) |
DatabaseIface |
getStateSaverDatabase() |
static java.lang.Object |
getStateSaverDatabaseLock() |
void |
onCreate(android.content.Context context,
android.content.Intent intent,
MapView view)
Called when the component is first created
|
protected void |
onDestroyImpl(android.content.Context context,
MapView view)
This method is invoked as a subset of the onDestroy call as part of the
MapComponent lifecycle.
|
StateSaverCursor |
query(StateSaverQueryParameters params)
Query the statesaver using special parameters
|
addOverlay, onConfigurationChanged, onCreateOptionsMenu, onDestroy, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onStart, onStop, registerReceiver, removeOverlay, setOnAllComponentsCreatedCallback, unregisterReceiver
public static final java.lang.String TAG
public static final java.lang.String TABLE_COTEVENTS
public static final java.lang.String COLUMN_EVENT
public static final java.lang.String COLUMN_JSON
public static final java.lang.String COLUMN_LAST_UPDATE
public static final java.lang.String COLUMN_VISIBLE
public static final java.lang.String COLUMN_UID
public static final java.lang.String COLUMN_TYPE
public static final java.lang.String COLUMN_ID
public static final java.lang.String COLUMN_POINT_GEOM
public static final java.lang.String ADD_CLASSIFICATION_ACTION
public void onCreate(android.content.Context context, android.content.Intent intent, MapView view)
MapComponent
context
- the context of the component (the MapActivity instance)intent
- the intent of the MapActivityview
- the main MapViewpublic static StateSaver getInstance()
protected void onDestroyImpl(android.content.Context context, MapView view)
AbstractMapComponent
onDestroyImpl
in class AbstractMapComponent
public static int getQueryOrder(java.lang.String type)
public DatabaseIface getStateSaverDatabase()
public static java.lang.Object getStateSaverDatabaseLock()
public StateSaverCursor query(StateSaverQueryParameters params)
params
- Statesaver specific parameters