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, updateChildrenprotected 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()
HierarchyListItemgetIconUri in interface HierarchyListItemgetIconUri in class AbstractHierarchyListItem2null if the node
has no icon, or "gone" to remove the icon space entirely.public java.lang.String getTitle()
HierarchyListItemgetTitle in interface HierarchyListItempublic java.lang.String getUID()
HierarchyListItemgetUID in interface HierarchyListItemgetUID in class AbstractHierarchyListItem2public int getDescendantCount()
HierarchyListItemgetDescendantCount in interface HierarchyListItempublic HierarchyListItem getChildAt(int index)
HierarchyListItemgetChildAt in interface HierarchyListItemgetChildAt in class AbstractHierarchyListItem2index - The indexpublic <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 java.lang.Object getUserObject()
HierarchyListItemgetUserObject in interface HierarchyListItemnull.public android.view.View getExtraView()
HierarchyListItemgetExtraView in interface HierarchyListItemgetExtraView in class AbstractHierarchyListItem2null if there is no view.protected void refreshImpl()
AbstractHierarchyListItem2refreshImpl in class AbstractHierarchyListItem2public boolean hideIfEmpty()
HierarchyListItem2hideIfEmpty in interface HierarchyListItem2public boolean setVisible(boolean visible)
VisibilitysetVisible in interface VisibilitysetVisible in class AbstractHierarchyListItem2visible - boolean true is visible, false invisible.public boolean isVisible()
VisibilityisVisible in interface VisibilityisVisible in class AbstractHierarchyListItem2public java.util.Set<HierarchyListItem> find(java.lang.String terms)
find in interface Searchfind in class AbstractHierarchyListItem2public boolean delete()
AbstractHierarchyListItem2delete in interface Deletedelete in class AbstractHierarchyListItem2public FeatureDataStore.FeatureQueryParameters buildQueryParams()
public FeatureDataStore2 getFeatureDatabase()
public FeatureQueryParameters getFeatureQueryParams()