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.SortDistanceFrom
asyncRefresh, 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, updateChildren
public GeoFenceListModel(MapView view, GeoFenceManager manager, GeoFence fence, MapItem item)
public java.lang.String getUID()
HierarchyListItem
getUID
in interface HierarchyListItem
getUID
in class AbstractHierarchyListItem2
public java.lang.String getTitle()
HierarchyListItem
getTitle
in interface HierarchyListItem
public java.lang.String getIconUri()
HierarchyListItem
getIconUri
in interface HierarchyListItem
getIconUri
in class AbstractHierarchyListItem2
null
if the node
has no icon, or "gone" to remove the icon space entirely.public boolean isChildSupported()
HierarchyListItem
isChildSupported
in interface HierarchyListItem
isChildSupported
in class AbstractHierarchyListItem2
public int getDescendantCount()
HierarchyListItem
getDescendantCount
in interface HierarchyListItem
public java.lang.Object getUserObject()
HierarchyListItem
getUserObject
in interface HierarchyListItem
null
.public MapItem getMapItem()
getMapItem
in interface MapItemUser
public android.view.View getExtraView(android.view.View v, android.view.ViewGroup parent)
HierarchyListItem2
HierarchyListItem.getExtraView()
except the existing view is provided
This is to allow more efficient view cycling when scrolling through OMgetExtraView
in interface HierarchyListItem2
getExtraView
in class AbstractHierarchyListItem2
v
- 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()
AbstractHierarchyListItem2
refreshImpl
in class AbstractHierarchyListItem2
public boolean hideIfEmpty()
HierarchyListItem2
hideIfEmpty
in interface HierarchyListItem2
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
public boolean onLongClick(android.view.View view)
onLongClick
in interface android.view.View.OnLongClickListener
public java.util.Set<HierarchyListItem> find(java.lang.String terms)
find
in interface Search
find
in class AbstractHierarchyListItem2
public static java.lang.String getBreachMarkerUID(GeoFenceAlerting.Alert alert)