public class DropDownMapComponent extends AbstractMapComponent
AbstractMapComponent.OnAllComponentsCreatedCallback
TAG
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, unregisterReceiver
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 MapViewprotected void onDestroyImpl(android.content.Context context, MapView view)
AbstractMapComponent
onDestroyImpl
in class AbstractMapComponent
protected 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)
MapComponent
onCreateOptionsMenu
in interface MapComponent
onCreateOptionsMenu
in class AbstractMapComponent
context
- 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)
MapComponent
onPrepareOptionsMenu
in interface MapComponent
onPrepareOptionsMenu
in class AbstractMapComponent
context
- 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)
MapComponent
onOptionsItemSelected
in interface MapComponent
onOptionsItemSelected
in class AbstractMapComponent
context
- 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)
MapComponent
onOptionsMenuClosed
in interface MapComponent
onOptionsMenuClosed
in class AbstractMapComponent
context
- the context of the component (the MapActivity instance)menu
- The options menu in which you place your items.Activity.onOptionsMenuClosed(Menu)