public class ImportManagerMapOverlay extends AbstractMapOverlay2 implements ATAKActivity.OnShutDownListener, Delete
| Modifier and Type | Class and Description |
|---|---|
class |
ImportManagerMapOverlay.RemoteResourcesOverlayListModel |
| Constructor and Description |
|---|
ImportManagerMapOverlay(MapView view,
ImportExportMapComponent component) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addResource(RemoteResource resource) |
boolean |
addResource(RemoteResource resource,
boolean update)
Prevents double adding, causes adapter to be redrawn
|
boolean |
addResources(java.util.List<RemoteResource> resources,
boolean update)
Bulk add/update resources
|
boolean |
delete()
Perform deletion on this item
|
void |
delete(RemoteResource resource,
boolean bContentOnly) |
java.util.List<RemoteResource> |
findResources() |
java.util.List<RemoteResource> |
findResources(java.lang.String dir) |
void |
flush() |
java.lang.String |
getIdentifier()
Returns the application unique identifier for the overlay.
|
HierarchyListItem |
getListModel(android.widget.BaseAdapter adapter,
long capabilities,
HierarchyListFilter prefFilter)
Returns the model that may be used to build a UI to interact with the overlay.
|
java.lang.String |
getName()
Returns the name of the overlay.
|
static ImportManagerMapOverlay |
getOverlay(MapView mapView) |
DeepMapItemQuery |
getQueryFunction() |
RemoteResource |
getResource(java.lang.String name) |
java.util.List<RemoteResource> |
getResources() |
MapGroup |
getRootGroup()
|
static boolean |
isInternal(java.lang.String dir) |
void |
onShutDown() |
void |
replace(RemoteResource resource,
RemoteResource newrr) |
getListModelpublic ImportManagerMapOverlay(MapView view, ImportExportMapComponent component)
public java.lang.String getIdentifier()
MapOverlaygetIdentifier in interface MapOverlaypublic java.lang.String getName()
MapOverlaygetName in interface MapOverlaypublic MapGroup getRootGroup()
MapOverlayMapGroup which will contain all
subgroups and MapItem instances for the overlay. This
method may return null to indicate that the overlay does not contain any content
that may be selected or interact with other map items.
getRootGroup in interface MapOverlaynull if the overlay does not contain
any selectable content.public DeepMapItemQuery getQueryFunction()
getQueryFunction in interface MapOverlaypublic HierarchyListItem getListModel(android.widget.BaseAdapter adapter, long capabilities, HierarchyListFilter prefFilter)
MapOverlay2null, the overlay
will not appear in the list.getListModel in interface MapOverlay2adapter - A reference to the adapter that will be responsible for displaying the list.
The overlay may invoke BaseAdapter.notifyDataSetChanged()
if the list content is externally modified and the adapter should update.prefFilter - The preferred filter to be used when constructing the list view.
This argument is a hint and may be ignored in the event that executing the
specified filter will compromise performance. A filter with an ascending alphabetic sort is
recommended as the default.null if the
overlay should not be included in the list.public boolean delete()
Deletepublic java.util.List<RemoteResource> getResources()
public RemoteResource getResource(java.lang.String name)
public java.util.List<RemoteResource> findResources()
public java.util.List<RemoteResource> findResources(java.lang.String dir)
public void flush()
public void onShutDown()
onShutDown in interface ATAKActivity.OnShutDownListenerpublic boolean addResources(java.util.List<RemoteResource> resources, boolean update)
resources - List of remote resource definitionsupdate - True to update existing resourcespublic boolean addResource(RemoteResource resource, boolean update)
public boolean addResource(RemoteResource resource)
public void delete(RemoteResource resource, boolean bContentOnly)
public void replace(RemoteResource resource, RemoteResource newrr)
public static boolean isInternal(java.lang.String dir)
public static ImportManagerMapOverlay getOverlay(MapView mapView)