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, updateChildren
public 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()
HierarchyListItem
getTitle
in interface HierarchyListItem
public java.lang.String getUID()
HierarchyListItem
getUID
in interface HierarchyListItem
getUID
in class AbstractHierarchyListItem2
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 int getChildCount()
HierarchyListItem
getChildCount
in interface HierarchyListItem
getChildCount
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(android.view.View row, 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
row
- 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 isGetChildrenSupported()
isGetChildrenSupported
in class AbstractHierarchyListItem2
public boolean hideIfEmpty()
HierarchyListItem2
hideIfEmpty
in interface HierarchyListItem2
public HierarchyListItem findChild(java.lang.String uid)
findChild
in class AbstractHierarchyListItem2
uid
- UID to search forpublic java.util.Set<HierarchyListItem> find(java.lang.String terms)
find
in interface Search
find
in class AbstractHierarchyListItem2
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 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 boolean delete()
AbstractHierarchyListItem2
delete
in interface Delete
delete
in class AbstractHierarchyListItem2
public FeatureDataStore2 getFeatureDatabase()
public FeatureDataStore2.FeatureQueryParameters getFeatureQueryParams()
public boolean isSupported(java.lang.Class<?> target)
Exportable
isSupported
in interface Exportable
target
- the target classpublic java.lang.Object toObjectOf(java.lang.Class<?> target, ExportFilters filters) throws FormatNotSupportedException
Exportable
toObjectOf
in interface Exportable
target
- 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.