public class MissionPackageMapOverlay extends AbstractMapOverlay2 implements MissionPackageBaseTask.Callback, URIContentListener
Modifier and Type | Field and Description |
---|---|
static java.io.FilenameFilter |
FeatureSetFilter
Deprecated.
|
Constructor and Description |
---|
MissionPackageMapOverlay(MapView view,
MissionPackageMapComponent component) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(MissionPackageListGroup group) |
void |
add(MissionPackageManifest contents,
java.lang.String userName) |
void |
addFiles(MissionPackageListGroup group,
boolean autoImport,
java.lang.String... files) |
void |
addFiles(MissionPackageListGroup group,
java.lang.String... files) |
void |
addMapItems(java.lang.String groupId,
boolean includeAttachments,
java.lang.String... mapItemUIDArray) |
boolean |
contains(MissionPackageManifest contents) |
void |
dispose() |
MissionPackageMapComponent |
getComponent() |
MissionPackageListGroup |
getGroup(java.lang.String uid) |
java.util.List<MissionPackageListGroup> |
getGroups() |
java.lang.String |
getIdentifier()
Returns the application unique identifier for the overlay.
|
HierarchyListItem |
getListModel(android.widget.BaseAdapter adapter,
long capabilities,
HierarchyListFilter filter)
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 MissionPackageMapOverlay |
getOverlay() |
DeepMapItemQuery |
getQueryFunction() |
MapGroup |
getRootGroup()
|
static void |
navigateTo(java.lang.String... paths)
Navigate to a mission package
|
void |
onContentChanged(URIContentHandler handler)
Called when content has changed in some way
|
void |
onContentDeleted(URIContentHandler handler)
Called when content is finished being locally deleted
|
void |
onContentImported(URIContentHandler handler)
Called when content is finished being imported
|
void |
onMissionPackageTaskComplete(MissionPackageBaseTask task,
boolean success) |
void |
remove(java.io.File f,
boolean bToast) |
void |
remove(java.lang.String filePath,
boolean bToast) |
getListModel
@Deprecated public static final java.io.FilenameFilter FeatureSetFilter
public MissionPackageMapOverlay(MapView view, MissionPackageMapComponent component)
public void dispose()
public static MissionPackageMapOverlay getOverlay()
public static void navigateTo(java.lang.String... paths)
paths
- Path array to navigate to (null for root list)public java.lang.String getIdentifier()
MapOverlay
getIdentifier
in interface MapOverlay
public MissionPackageMapComponent getComponent()
public java.util.List<MissionPackageListGroup> getGroups()
public MissionPackageListGroup getGroup(java.lang.String uid)
public void addMapItems(java.lang.String groupId, boolean includeAttachments, java.lang.String... mapItemUIDArray)
public void addFiles(MissionPackageListGroup group, boolean autoImport, java.lang.String... files)
public void addFiles(MissionPackageListGroup group, java.lang.String... files)
public void remove(java.lang.String filePath, boolean bToast)
public void remove(java.io.File f, boolean bToast)
public boolean contains(MissionPackageManifest contents)
public void add(MissionPackageManifest contents, java.lang.String userName)
public boolean add(MissionPackageListGroup group)
public void onContentImported(URIContentHandler handler)
URIContentListener
onContentImported
in interface URIContentListener
handler
- URI content handlerpublic void onContentDeleted(URIContentHandler handler)
URIContentListener
onContentDeleted
in interface URIContentListener
handler
- URI content handlerpublic void onContentChanged(URIContentHandler handler)
URIContentListener
onContentChanged
in interface URIContentListener
handler
- URI content handlerpublic void onMissionPackageTaskComplete(MissionPackageBaseTask task, boolean success)
onMissionPackageTaskComplete
in interface MissionPackageBaseTask.Callback
public java.lang.String getName()
MapOverlay
getName
in interface MapOverlay
public MapGroup getRootGroup()
MapOverlay
MapGroup
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 MapOverlay
null
if the overlay does not contain
any selectable content.public DeepMapItemQuery getQueryFunction()
getQueryFunction
in interface MapOverlay
public HierarchyListItem getListModel(android.widget.BaseAdapter adapter, long capabilities, HierarchyListFilter filter)
MapOverlay2
null
, the overlay
will not appear in the list.getListModel
in interface MapOverlay2
adapter
- 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.filter
- 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.