public class MvtFileListItem extends AbstractHierarchyListItem implements android.view.View.OnClickListener, android.view.View.OnLongClickListener, Visibility, Search, Delete, Export
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom| Constructor and Description |
|---|
MvtFileListItem(android.content.Context context,
java.io.File file,
java.util.List<HierarchyListItem> featureSets) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Perform deletion on this item
|
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 |
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()
Returns the extra view, if any, associated with the node.
|
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.Object |
getUserObject()
Returns the user object associated with the node.
|
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) |
HierarchyListItem.Sort |
refresh(HierarchyListItem.Sort sort)
Refreshes this node's descendants on the specified sort.
|
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
|
getIconColor, getLocalData, getLocalData, getPreferredListIndex, getUID, isChildSupported, setLocalDatapublic MvtFileListItem(android.content.Context context,
java.io.File file,
java.util.List<HierarchyListItem> featureSets)
public java.lang.String getTitle()
HierarchyListItemgetTitle in interface HierarchyListItempublic java.lang.String getIconUri()
HierarchyListItemgetIconUri in interface HierarchyListItemgetIconUri in class AbstractHierarchyListItemnull if the node
has no icon, or "gone" to remove the icon space entirely.public int getChildCount()
HierarchyListItemgetChildCount in interface HierarchyListItempublic int getDescendantCount()
HierarchyListItemgetDescendantCount in interface HierarchyListItempublic HierarchyListItem getChildAt(int index)
HierarchyListItemgetChildAt in interface HierarchyListItemindex - The indexpublic <T extends Action> T getAction(java.lang.Class<T> clazz)
HierarchyListItemgetAction in interface HierarchyListItemclazz - 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 HierarchyListItemnull if there is no view.public HierarchyListItem.Sort refresh(HierarchyListItem.Sort sort)
HierarchyListItemrefresh in interface HierarchyListItemsort - The new sortpublic java.util.Set<HierarchyListItem> find(java.lang.String terms)
public 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 Visibilityvisible - boolean true is visible, false invisible.public boolean isVisible()
VisibilityisVisible in interface Visibilitypublic boolean delete()
Deletepublic 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.