public class ModelFileHierarchyListItem extends AbstractHierarchyListItem2 implements Visibility2, Delete, Export, Search, android.view.View.OnClickListener, FOVFilter.Filterable, HierarchyListStateListener
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom
asyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandler
INVISIBLE, SEMI_VISIBLE, VISIBLE
Constructor and Description |
---|
ModelFileHierarchyListItem(MapView view,
FeatureDataStore2 dataStore,
FeatureSet featureSet,
android.widget.BaseAdapter listener) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(FOVFilter.MapState fov) |
boolean |
delete()
Execute all delete actions defined in this class
|
java.util.Set<HierarchyListItem> |
find(java.lang.String terms) |
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 v,
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 |
android.graphics.drawable.Drawable |
getIconDrawable()
Get the icon drawable
|
ModelInfoHierarchyListItem |
getSingleChild() |
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.
|
int |
getVisibility()
Typical calculation for determining ternary visibility
Note that this class does not implement Visibility or Visibility2
|
boolean |
hasSingleChild() |
boolean |
hideIfEmpty()
Count towards parent children if this item's children is empty
|
boolean |
isChildSupported()
Check if list item can contain children
|
boolean |
isMultiSelectSupported()
Does this list support multi-selection of its items?
|
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 |
onCloseList(HierarchyListAdapter om,
boolean forceClose)
The list is about to be closed (popped off the stack or pushed beneath)
Event can be suppressed unless forceClose is true
|
boolean |
onOpenList(HierarchyListAdapter om)
The list is about to be opened (pushed to the front of the stack)
Event can be suppressed (i.e.
|
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, findChild, getAction, getAssociationKey, getChildActions, getChildAt, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getFilter, getFooterView, getHeaderView, getIconColor, getIconUri, getListItemView, getLocalData, getLocalData, getPreferredListIndex, getSorts, isDisposed, isGetChildrenSupported, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, sortItems, syncRefresh, updateChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onBackButton, onListVisible
public ModelFileHierarchyListItem(MapView view, FeatureDataStore2 dataStore, FeatureSet featureSet, android.widget.BaseAdapter listener)
public ModelInfoHierarchyListItem getSingleChild()
protected void refreshImpl()
AbstractHierarchyListItem2
refreshImpl
in class AbstractHierarchyListItem2
public java.lang.String getUID()
HierarchyListItem
getUID
in interface HierarchyListItem
getUID
in class AbstractHierarchyListItem2
public java.lang.String getTitle()
HierarchyListItem
getTitle
in interface HierarchyListItem
public int getChildCount()
HierarchyListItem
getChildCount
in interface HierarchyListItem
getChildCount
in class AbstractHierarchyListItem2
public boolean hasSingleChild()
public int getDescendantCount()
HierarchyListItem
getDescendantCount
in interface HierarchyListItem
public boolean isChildSupported()
HierarchyListItem
isChildSupported
in interface HierarchyListItem
isChildSupported
in class AbstractHierarchyListItem2
public android.graphics.drawable.Drawable getIconDrawable()
HierarchyListItem2
getIconDrawable
in interface HierarchyListItem2
getIconDrawable
in class AbstractHierarchyListItem2
public java.lang.Object getUserObject()
HierarchyListItem
getUserObject
in interface HierarchyListItem
null
.public android.view.View getExtraView(android.view.View v, 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
v
- 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 inflatingpublic void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
public boolean hideIfEmpty()
HierarchyListItem2
hideIfEmpty
in interface HierarchyListItem2
public boolean isMultiSelectSupported()
HierarchyListItem2
isMultiSelectSupported
in interface HierarchyListItem2
isMultiSelectSupported
in class AbstractHierarchyListItem2
public boolean onOpenList(HierarchyListAdapter om)
HierarchyListStateListener
onOpenList
in interface HierarchyListStateListener
om
- Overlay Manager adapterpublic boolean onCloseList(HierarchyListAdapter om, boolean forceClose)
HierarchyListStateListener
onCloseList
in interface HierarchyListStateListener
om
- Overlay Manager adapterforceClose
- True if the list is being forcibly closedpublic int getVisibility()
AbstractHierarchyListItem2
getVisibility
in interface Visibility2
getVisibility
in class AbstractHierarchyListItem2
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 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.public boolean accept(FOVFilter.MapState fov)
accept
in interface FOVFilter.Filterable
public java.util.Set<HierarchyListItem> find(java.lang.String terms)
find
in interface Search
find
in class AbstractHierarchyListItem2