public class GeoFenceListModel extends AbstractHierarchyListItem2 implements GoTo, MapItemUser, Search, Delete, android.view.View.OnClickListener, android.view.View.OnLongClickListener
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFromasyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandler| Constructor and Description |
|---|
GeoFenceListModel(MapView view,
GeoFenceManager manager,
GeoFence fence,
MapItem item) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<HierarchyListItem> |
find(java.lang.String terms) |
static java.lang.String |
getBreachMarkerUID(GeoFenceAlerting.Alert alert) |
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.
|
MapItem |
getMapItem() |
java.lang.String |
getTitle()
Returns the title to be displayed for the item.
|
java.lang.String |
getUID()
Returns the unique ID of the list item
|
java.lang.Object |
getUserObject()
Returns the user object associated with the node.
|
boolean |
goTo(boolean select) |
boolean |
hideIfEmpty()
Count towards parent children if this item's children is empty
|
boolean |
isChildSupported()
Check if list item can contain children
|
void |
onClick(android.view.View v) |
boolean |
onLongClick(android.view.View view) |
protected 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
|
async, buildQueryParams, delete, dispose, disposeChildren, disposeItems, findChild, getAction, getAssociationKey, getChildActions, getChildAt, getChildCount, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getFilter, getFooterView, getHeaderView, getIconColor, getIconDrawable, getListItemView, getLocalData, getLocalData, getPreferredListIndex, getSorts, getVisibility, isDisposed, isGetChildrenSupported, isMultiSelectSupported, isVisible, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, setVisible, sortItems, syncRefresh, updateChildrenpublic GeoFenceListModel(MapView view, GeoFenceManager manager, GeoFence fence, MapItem item)
public java.lang.String getUID()
HierarchyListItemgetUID in interface HierarchyListItemgetUID in class AbstractHierarchyListItem2public 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 boolean isChildSupported()
HierarchyListItemisChildSupported in interface HierarchyListItemisChildSupported in class AbstractHierarchyListItem2public int getDescendantCount()
HierarchyListItemgetDescendantCount in interface HierarchyListItempublic java.lang.Object getUserObject()
HierarchyListItemgetUserObject in interface HierarchyListItemnull.public MapItem getMapItem()
getMapItem in interface MapItemUserpublic 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 inflatingprotected void refreshImpl()
AbstractHierarchyListItem2refreshImpl in class AbstractHierarchyListItem2public boolean hideIfEmpty()
HierarchyListItem2hideIfEmpty in interface HierarchyListItem2public void onClick(android.view.View v)
onClick in interface android.view.View.OnClickListenerpublic boolean onLongClick(android.view.View view)
onLongClick in interface android.view.View.OnLongClickListenerpublic java.util.Set<HierarchyListItem> find(java.lang.String terms)
find in interface Searchfind in class AbstractHierarchyListItem2public static java.lang.String getBreachMarkerUID(GeoFenceAlerting.Alert alert)