public class WarningComponent extends AbstractWidgetMapComponent implements MapWidget.OnClickListener
| Modifier and Type | Class and Description |
|---|---|
static class |
WarningComponent.Alert
Abstract alert base class
|
AbstractMapComponent.OnAllComponentsCreatedCallbackROOT_LAYOUT_EXTRA| Constructor and Description |
|---|
WarningComponent() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAlert(WarningComponent.Alert alert)
Add or update the alert
|
static void |
addAlerts(java.lang.Class<? extends WarningComponent.Alert> clazz,
java.util.Collection<? extends WarningComponent.Alert> list)
Add or update the specified alerts
Remove all other alerts of the specified clazz
This effectively replaces an entire category of alerts
|
static java.util.List<WarningComponent.Alert> |
getAlerts()
Get the list of active alerts
|
static java.util.List<WarningComponent.Alert> |
getAlerts(java.lang.String groupName)
Get all alerts with the given group name
|
protected void |
onCreateWidgets(android.content.Context context,
android.content.Intent intent,
MapView view) |
protected void |
onDestroyWidgets(android.content.Context context,
MapView view) |
void |
onMapWidgetClick(MapWidget widget,
android.view.MotionEvent event) |
static void |
removeAlert(WarningComponent.Alert alert)
Remove the specified alert
|
static void |
removeAlerts(java.lang.Class<? extends WarningComponent.Alert> clazz)
Remove all alerts of the specified clazz
|
static void |
removeAlerts(java.util.List<? extends WarningComponent.Alert> list)
Remove the specified alerts
|
getRootLayoutWidget, onCreate, onDestroyImpladdOverlay, onConfigurationChanged, onCreateOptionsMenu, onDestroy, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onStart, onStop, registerReceiver, removeOverlay, setOnAllComponentsCreatedCallback, unregisterReceiverprotected void onCreateWidgets(android.content.Context context,
android.content.Intent intent,
MapView view)
onCreateWidgets in class AbstractWidgetMapComponentpublic void onMapWidgetClick(MapWidget widget, android.view.MotionEvent event)
onMapWidgetClick in interface MapWidget.OnClickListenerpublic static void addAlert(WarningComponent.Alert alert)
alert - the alert to add or updatepublic static void addAlerts(java.lang.Class<? extends WarningComponent.Alert> clazz, java.util.Collection<? extends WarningComponent.Alert> list)
clazz - the alert classlist - the list of alerts to addpublic static void removeAlert(WarningComponent.Alert alert)
alert - the specific alert to remove from the systempublic static void removeAlerts(java.lang.Class<? extends WarningComponent.Alert> clazz)
clazz - the class of alert to removepublic static void removeAlerts(java.util.List<? extends WarningComponent.Alert> list)
list - the list of alerts to removepublic static java.util.List<WarningComponent.Alert> getAlerts()
public static java.util.List<WarningComponent.Alert> getAlerts(java.lang.String groupName)
groupName - Group nameprotected void onDestroyWidgets(android.content.Context context,
MapView view)
onDestroyWidgets in class AbstractWidgetMapComponent