public class MissionPackageListGroup
extends java.lang.Object
Constructor and Description |
---|
MissionPackageListGroup(MissionPackageManifest manifest,
java.util.List<MissionPackageListItem> items,
java.lang.String userName)
ctor
|
Modifier and Type | Method and Description |
---|---|
boolean |
addFile(java.io.File file,
java.lang.String uid) |
boolean |
addFile(MissionPackageContent content,
java.io.File file) |
void |
addMapItems(MapGroup mapGroup,
java.lang.String... uids) |
java.util.List<MissionPackageListItem> |
getItems() |
MissionPackageManifest |
getManifest() |
java.lang.String |
getUserName() |
void |
invalidate()
Manually invalidate the MP so the user can choose to save it again
Used when contents are modified at a lower level than the manifest tells us
|
boolean |
isModified() |
boolean |
isSaved() |
boolean |
isValid()
Delegates to manifest to check for validity
|
void |
rebase()
Reset baseline (for comparison) equal to current contents e.g.
|
void |
removeContents() |
boolean |
removeFile(MissionPackageListFileItem item) |
boolean |
removeItem(MissionPackageListItem item) |
boolean |
removeMapItem(MissionPackageListMapItem item) |
void |
saveAndSend(MissionPackageMapComponent component,
boolean bSend,
MissionPackageBaseTask.Callback callback,
Contact[] netContacts)
Save if needed, send if requested Wrapper for MissionPackageFileIO save and send methods
|
void |
setItems(java.util.List<MissionPackageListItem> items) |
void |
setUserName(java.lang.String userName) |
java.lang.String |
toString() |
public MissionPackageListGroup(MissionPackageManifest manifest, java.util.List<MissionPackageListItem> items, java.lang.String userName)
manifest
- items
- userName
- public boolean isValid()
public MissionPackageManifest getManifest()
public java.util.List<MissionPackageListItem> getItems()
public boolean isModified()
public java.lang.String getUserName()
public void setItems(java.util.List<MissionPackageListItem> items)
public void setUserName(java.lang.String userName)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean removeItem(MissionPackageListItem item)
public boolean addFile(java.io.File file, java.lang.String uid)
public boolean addFile(MissionPackageContent content, java.io.File file)
public boolean removeFile(MissionPackageListFileItem item)
public void addMapItems(MapGroup mapGroup, java.lang.String... uids)
public boolean removeMapItem(MissionPackageListMapItem item)
public void saveAndSend(MissionPackageMapComponent component, boolean bSend, MissionPackageBaseTask.Callback callback, Contact[] netContacts)
component
- bSend
- callback
- netContacts
- public void rebase()
public void invalidate()
public boolean isSaved()
public void removeContents()