public class AttachmentMapOverlay.AttachmentOverlayListModel extends AbstractHierarchyListItem2 implements Search, Export, Delete, Visibility2, CoTInfoMapComponent.AttachmentEventListener, android.view.View.OnClickListener, android.view.View.OnLongClickListener
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFromasyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandlerINVISIBLE, SEMI_VISIBLE, VISIBLE| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Execute all delete actions defined in this class
|
void |
dispose()
Unregister any listeners,
|
java.util.Set<HierarchyListItem> |
find(java.lang.String searchterm)
******************************************************************
|
<T extends Action> |
getAction(java.lang.Class<T> clazz)
Returns an instance of the specified action that can be used to interact with the node's
underlying content.
|
HierarchyListItem |
getChildAt(int index)
Returns the child node at the specified index.
|
int |
getDescendantCount()
Returns the total number of descendant nodes that this node has.
|
android.view.View |
getExtraView(android.view.View v,
android.view.ViewGroup parent)
Same as
HierarchyListItem.getExtraView() except the existing view is provided
This is to allow more efficient view cycling when scrolling through OM |
java.lang.String |
getIconUri()
Returns the URI for the icon for the node.
|
int |
getPreferredListIndex()
Returns the preferred index in the list for the item to be displayed at.
|
java.lang.String |
getTitle()
Returns the title to be displayed for the item.
|
java.lang.Object |
getUserObject()
Returns the user object associated with the node.
|
boolean |
hideIfEmpty()
Count towards parent children if this item's children is empty
|
boolean |
isSupported(java.lang.Class<?> target)
Check if this instance supports the specified target class type
|
void |
onAttachmentAdded(MapItem item) |
void |
onAttachmentRemoved(MapItem item) |
void |
onClick(android.view.View v) |
boolean |
onLongClick(android.view.View v) |
void |
refreshImpl()
Refresh implementation to be run on a background thread
If your class doesn't need to refresh then override the filter
method above to avoid unnecessary threading
|
boolean |
setVisible(boolean visible)
Encapsulation of the visibility toggle implementation as an action.
|
Folder |
toKml(ExportFilters filters) |
Folder |
toKmz(ExportFilters filters) |
java.lang.Object |
toObjectOf(java.lang.Class<?> target,
ExportFilters filters)
Export to the specified target class type
|
async, buildQueryParams, disposeChildren, disposeItems, findChild, getAssociationKey, getChildActions, getChildCount, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getFilter, getFooterView, getHeaderView, getIconColor, getIconDrawable, getListItemView, getLocalData, getLocalData, getSorts, getUID, getVisibility, isChildSupported, isDisposed, isGetChildrenSupported, isMultiSelectSupported, isVisible, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, sortItems, syncRefresh, updateChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVisibilityisVisiblepublic java.lang.String getTitle()
HierarchyListItemgetTitle in interface HierarchyListItempublic java.lang.String getIconUri()
HierarchyListItemgetIconUri in interface HierarchyListItemgetIconUri in class AbstractHierarchyListItem2null if the node
has no icon, or "gone" to remove the icon space entirely.public int getPreferredListIndex()
HierarchyListItemgetPreferredListIndex in interface HierarchyListItemgetPreferredListIndex in class AbstractHierarchyListItem2-1 to indicate no preference
(FIFO).public int getDescendantCount()
HierarchyListItemgetDescendantCount in interface HierarchyListItempublic HierarchyListItem getChildAt(int index)
HierarchyListItemgetChildAt in interface HierarchyListItemgetChildAt in class AbstractHierarchyListItem2index - The indexpublic boolean delete()
AbstractHierarchyListItem2delete in interface Deletedelete in class AbstractHierarchyListItem2public java.lang.Object getUserObject()
HierarchyListItemgetUserObject in interface HierarchyListItemnull.public <T extends Action> T getAction(java.lang.Class<T> clazz)
HierarchyListItemgetAction in interface HierarchyListItemgetAction in class AbstractHierarchyListItem2clazz - The action classnull if the specified
action is not supported for the node.public android.view.View getExtraView(android.view.View v,
android.view.ViewGroup parent)
HierarchyListItem2HierarchyListItem.getExtraView() except the existing view is provided
This is to allow more efficient view cycling when scrolling through OMgetExtraView in interface HierarchyListItem2getExtraView in class AbstractHierarchyListItem2v - The existing extra view. Only inflate a new layout
if the id/context do not match your expected config.parent - The extra view parent - Use this as "root" when inflatingpublic void onClick(android.view.View v)
onClick in interface android.view.View.OnClickListenerpublic boolean onLongClick(android.view.View v)
onLongClick in interface android.view.View.OnLongClickListenerpublic void refreshImpl()
AbstractHierarchyListItem2refreshImpl in class AbstractHierarchyListItem2public boolean hideIfEmpty()
HierarchyListItem2hideIfEmpty in interface HierarchyListItem2public void dispose()
HierarchyListItem2dispose in interface HierarchyListItem2dispose in class AbstractHierarchyListItem2public void onAttachmentAdded(MapItem item)
onAttachmentAdded in interface CoTInfoMapComponent.AttachmentEventListenerpublic void onAttachmentRemoved(MapItem item)
onAttachmentRemoved in interface CoTInfoMapComponent.AttachmentEventListenerpublic java.util.Set<HierarchyListItem> find(java.lang.String searchterm)
find in interface Searchfind in class AbstractHierarchyListItem2public boolean isSupported(java.lang.Class<?> target)
ExportableisSupported in interface Exportabletarget - the target classpublic java.lang.Object toObjectOf(java.lang.Class<?> target,
ExportFilters filters)
throws FormatNotSupportedException
ExportabletoObjectOf in interface Exportabletarget - the target classfilters - Allows ExportMarshal instances to filter e.g. based
on geographic region or other criteriaFormatNotSupportedException - if there is an issue creating the object.public Folder toKml(ExportFilters filters) throws FormatNotSupportedException
FormatNotSupportedExceptionpublic Folder toKmz(ExportFilters filters) throws FormatNotSupportedException
FormatNotSupportedExceptionpublic boolean setVisible(boolean visible)
VisibilitysetVisible in interface VisibilitysetVisible in class AbstractHierarchyListItem2visible - boolean true is visible, false invisible.