public class FeatureSetHierarchyListItem extends AbstractHierarchyListItem2 implements android.view.View.OnClickListener, android.view.View.OnLongClickListener, Visibility, Search, Delete, Export
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_DISTANCE_SORT |
asyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandler| Constructor and Description |
|---|
FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore2 spatialDb,
FeatureDataStorePathUtils.PathEntry path,
HierarchyListFilter filter,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri) |
FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore2 spatialDb,
FeatureDataStorePathUtils.PathEntry path,
HierarchyListItem.Sort order,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri) |
FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore2 spatialDb,
FeatureSet group,
HierarchyListItem.Sort order,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri) |
FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore2 spatialDb,
FeatureSet group,
java.lang.String title,
HierarchyListFilter filter,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri) |
FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore2 spatialDb,
FeatureSet group,
java.lang.String title,
HierarchyListItem.Sort order,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri) |
FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore spatialDb,
FeatureSet group,
HierarchyListItem.Sort order,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri) |
FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore spatialDb,
FeatureSet group,
java.lang.String title,
HierarchyListFilter filter,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri) |
FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore spatialDb,
FeatureSet group,
java.lang.String title,
HierarchyListItem.Sort order,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Execute all delete actions defined in this class
|
java.util.Set<HierarchyListItem> |
find(java.lang.String terms) |
HierarchyListItem |
findChild(java.lang.String uid)
Find a child feature or feature set given its ID
|
<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 |
getChildCount()
Returns the number of children that this node has.
|
int |
getDescendantCount()
Returns the total number of descendant nodes that this node has.
|
android.view.View |
getExtraView(android.view.View row,
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 |
FeatureDataStore2 |
getFeatureDatabase()
Get the feature database associated with this item
|
FeatureDataStore2.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 |
isGetChildrenSupported() |
boolean |
isSupported(java.lang.Class<?> target)
Check if this instance supports the specified target class type
|
boolean |
isVisible()
Gets the current visibility state.
|
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
|
boolean |
setVisible(boolean visible)
Encapsulation of the visibility toggle implementation as an action.
|
java.lang.Object |
toObjectOf(java.lang.Class<?> target,
ExportFilters filters)
Export to the specified target class type
|
async, buildQueryParams, dispose, disposeChildren, disposeItems, getAssociationKey, getChildActions, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getFilter, getFooterView, getHeaderView, getIconColor, getIconDrawable, getListItemView, getLocalData, getLocalData, getPreferredListIndex, getSorts, getVisibility, isChildSupported, isDisposed, isMultiSelectSupported, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, sortItems, syncRefresh, updateChildrenpublic static final int MAX_DISTANCE_SORT
public FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore spatialDb,
FeatureSet group,
HierarchyListItem.Sort order,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri)
public FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore2 spatialDb,
FeatureSet group,
HierarchyListItem.Sort order,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri)
public FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore spatialDb,
FeatureSet group,
java.lang.String title,
HierarchyListItem.Sort order,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri)
public FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore2 spatialDb,
FeatureSet group,
java.lang.String title,
HierarchyListItem.Sort order,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri)
public FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore spatialDb,
FeatureSet group,
java.lang.String title,
HierarchyListFilter filter,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri)
public FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore2 spatialDb,
FeatureSet group,
java.lang.String title,
HierarchyListFilter filter,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri)
public FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore2 spatialDb,
FeatureDataStorePathUtils.PathEntry path,
HierarchyListFilter filter,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri)
public FeatureSetHierarchyListItem(android.content.Context context,
FeatureDataStore2 spatialDb,
FeatureDataStorePathUtils.PathEntry path,
HierarchyListItem.Sort order,
android.widget.BaseAdapter listener,
java.lang.String contentType,
java.lang.String mimeType,
java.lang.String iconUri)
public java.lang.String getTitle()
HierarchyListItemgetTitle in interface HierarchyListItempublic java.lang.String getUID()
HierarchyListItemgetUID in interface HierarchyListItemgetUID in class AbstractHierarchyListItem2public 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 getChildCount()
HierarchyListItemgetChildCount in interface HierarchyListItemgetChildCount 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(android.view.View row,
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 AbstractHierarchyListItem2row - 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 isGetChildrenSupported()
isGetChildrenSupported in class AbstractHierarchyListItem2public boolean hideIfEmpty()
HierarchyListItem2hideIfEmpty in interface HierarchyListItem2public HierarchyListItem findChild(java.lang.String uid)
findChild in class AbstractHierarchyListItem2uid - UID to search forpublic java.util.Set<HierarchyListItem> find(java.lang.String terms)
find in interface Searchfind in class AbstractHierarchyListItem2public 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 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 boolean delete()
AbstractHierarchyListItem2delete in interface Deletedelete in class AbstractHierarchyListItem2public FeatureDataStore2 getFeatureDatabase()
public FeatureDataStore2.FeatureQueryParameters getFeatureQueryParams()
public 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.