public class DropDownMapComponent extends AbstractMapComponent
AbstractMapComponent.OnAllComponentsCreatedCallbackTAG| Constructor and Description |
|---|
DropDownMapComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCreate(android.content.Context context,
android.content.Intent intent,
MapView view)
Called when the component is first created
|
boolean |
onCreateOptionsMenu(android.content.Context context,
android.view.Menu menu)
Is called on all Map Components when the onCreateOptionsMenu is called on the Map Activity.
|
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.
|
boolean |
onOptionsItemSelected(android.content.Context context,
android.view.MenuItem item)
Called on a onOptionsItemSelected is called and not found in regular activity.
|
void |
onOptionsMenuClosed(android.content.Context context,
android.view.Menu menu)
Option menu has been closed in MapActivity.
|
boolean |
onPrepareOptionsMenu(android.content.Context context,
android.view.Menu menu)
Called to Update the Options Menu on all MapComponents in the MapActivity.
|
protected void |
registerDropDownReceiver(DropDownReceiver receiver,
AtakBroadcast.DocumentedIntentFilter filter)
Register a DropDownReceiver to be run in the main activity thread.
|
addOverlay, onConfigurationChanged, onDestroy, onPause, onResume, onStart, onStop, registerReceiver, removeOverlay, setOnAllComponentsCreatedCallback, unregisterReceiverpublic void onCreate(android.content.Context context,
android.content.Intent intent,
MapView view)
MapComponentcontext - the context of the component (the MapActivity instance)intent - the intent of the MapActivityview - the main MapViewprotected void onDestroyImpl(android.content.Context context,
MapView view)
AbstractMapComponentonDestroyImpl in class AbstractMapComponentprotected void registerDropDownReceiver(DropDownReceiver receiver, AtakBroadcast.DocumentedIntentFilter filter)
receiver - The DropDownReceiver to handle the broadcastfilter - Selects the Intent broadcasts to be received.public boolean onCreateOptionsMenu(android.content.Context context,
android.view.Menu menu)
MapComponentonCreateOptionsMenu in interface MapComponentonCreateOptionsMenu in class AbstractMapComponentcontext - the context of the component (the MapActivity instance)menu - The options menu in which you place your items.Activity.onCreateOptionsMenu(Menu)public boolean onPrepareOptionsMenu(android.content.Context context,
android.view.Menu menu)
MapComponentonPrepareOptionsMenu in interface MapComponentonPrepareOptionsMenu in class AbstractMapComponentcontext - the context of the component (the MapActivity instance)menu - The options menu in which you place your items.public boolean onOptionsItemSelected(android.content.Context context,
android.view.MenuItem item)
MapComponentonOptionsItemSelected in interface MapComponentonOptionsItemSelected in class AbstractMapComponentcontext - the context of the component (the MapActivity instance)item - The menu item that was selected.Activity.onOptionsItemSelected(MenuItem)public void onOptionsMenuClosed(android.content.Context context,
android.view.Menu menu)
MapComponentonOptionsMenuClosed in interface MapComponentonOptionsMenuClosed in class AbstractMapComponentcontext - the context of the component (the MapActivity instance)menu - The options menu in which you place your items.Activity.onOptionsMenuClosed(Menu)