public class FeatureDataStoreHierarchyListItem extends AbstractHierarchyListItem2 implements Visibility, Search, Delete
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
context |
protected java.lang.String |
iconUri |
protected java.lang.String |
mimeType |
protected FeatureDataStore2 |
spatialDb |
protected java.util.Set<java.lang.Class<? extends Action>> |
supportedActions |
protected java.lang.String |
title |
protected java.lang.String |
typeFilter |
protected java.lang.String |
uid |
asyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandler
Constructor and Description |
---|
FeatureDataStoreHierarchyListItem(FeatureDataStore2 spatialDb,
java.lang.String title,
java.lang.String iconUri,
java.lang.String typeFilter,
java.lang.String mimeType,
android.content.Context context,
android.widget.BaseAdapter listener,
HierarchyListFilter filter) |
FeatureDataStoreHierarchyListItem(FeatureDataStore spatialDb,
java.lang.String title,
java.lang.String iconUri,
android.content.Context context,
android.widget.BaseAdapter listener,
HierarchyListFilter filter) |
FeatureDataStoreHierarchyListItem(FeatureLayer layer,
java.lang.String iconUri,
android.content.Context context,
android.widget.BaseAdapter listener,
HierarchyListFilter filter) |
Modifier and Type | Method and Description |
---|---|
FeatureDataStore.FeatureQueryParameters |
buildQueryParams() |
boolean |
delete()
Execute all delete actions defined in this class
|
java.util.Set<HierarchyListItem> |
find(java.lang.String terms) |
<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()
Returns the extra view, if any, associated with the node.
|
FeatureDataStore2 |
getFeatureDatabase()
Get the feature database associated with this item
|
FeatureQueryParameters |
getFeatureQueryParams()
Get the query parameters for obtaining this set of features
|
java.lang.String |
getIconUri()
Returns the URI for the icon for the node.
|
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 |
hideIfEmpty()
Count towards parent children if this item's children is empty
|
boolean |
isVisible()
Gets the current visibility state.
|
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
|
boolean |
setVisible(boolean visible)
Encapsulation of the visibility toggle implementation as an action.
|
async, buildQueryParams, dispose, disposeChildren, disposeItems, findChild, getAssociationKey, getChildActions, getChildCount, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getFilter, getFooterView, getHeaderView, getIconColor, getIconDrawable, getListItemView, getLocalData, getLocalData, getPreferredListIndex, getSorts, getVisibility, isChildSupported, isDisposed, isGetChildrenSupported, isMultiSelectSupported, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, sortItems, syncRefresh, updateChildren
protected final android.content.Context context
protected final FeatureDataStore2 spatialDb
protected final java.lang.String typeFilter
protected final java.lang.String mimeType
protected final java.lang.String iconUri
protected final java.lang.String title
protected final java.lang.String uid
protected final java.util.Set<java.lang.Class<? extends Action>> supportedActions
public FeatureDataStoreHierarchyListItem(FeatureDataStore spatialDb, java.lang.String title, java.lang.String iconUri, android.content.Context context, android.widget.BaseAdapter listener, HierarchyListFilter filter)
public FeatureDataStoreHierarchyListItem(FeatureLayer layer, java.lang.String iconUri, android.content.Context context, android.widget.BaseAdapter listener, HierarchyListFilter filter)
public FeatureDataStoreHierarchyListItem(FeatureDataStore2 spatialDb, java.lang.String title, java.lang.String iconUri, java.lang.String typeFilter, java.lang.String mimeType, android.content.Context context, android.widget.BaseAdapter listener, HierarchyListFilter filter)
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 java.lang.String getTitle()
HierarchyListItem
getTitle
in interface HierarchyListItem
public java.lang.String getUID()
HierarchyListItem
getUID
in interface HierarchyListItem
getUID
in class AbstractHierarchyListItem2
public int getDescendantCount()
HierarchyListItem
getDescendantCount
in interface HierarchyListItem
public HierarchyListItem getChildAt(int index)
HierarchyListItem
getChildAt
in interface HierarchyListItem
getChildAt
in class AbstractHierarchyListItem2
index
- The indexpublic <T extends Action> T getAction(java.lang.Class<T> clazz)
HierarchyListItem
getAction
in interface HierarchyListItem
getAction
in class AbstractHierarchyListItem2
clazz
- The action classnull
if the specified
action is not supported for the node.public java.lang.Object getUserObject()
HierarchyListItem
getUserObject
in interface HierarchyListItem
null
.public android.view.View getExtraView()
HierarchyListItem
getExtraView
in interface HierarchyListItem
getExtraView
in class AbstractHierarchyListItem2
null
if there is no view.protected void refreshImpl()
AbstractHierarchyListItem2
refreshImpl
in class AbstractHierarchyListItem2
public boolean hideIfEmpty()
HierarchyListItem2
hideIfEmpty
in interface HierarchyListItem2
public boolean setVisible(boolean visible)
Visibility
setVisible
in interface Visibility
setVisible
in class AbstractHierarchyListItem2
visible
- boolean true is visible, false invisible.public boolean isVisible()
Visibility
isVisible
in interface Visibility
isVisible
in class AbstractHierarchyListItem2
public java.util.Set<HierarchyListItem> find(java.lang.String terms)
find
in interface Search
find
in class AbstractHierarchyListItem2
public boolean delete()
AbstractHierarchyListItem2
delete
in interface Delete
delete
in class AbstractHierarchyListItem2
public FeatureDataStore.FeatureQueryParameters buildQueryParams()
public FeatureDataStore2 getFeatureDatabase()
public FeatureQueryParameters getFeatureQueryParams()