public class ModelsHierarchyListItem extends AbstractHierarchyListItem2 implements Visibility2, Delete, Export, Search
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 |
---|
ModelsHierarchyListItem(MapView view,
FeatureLayer3 layer,
android.widget.BaseAdapter listener) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete()
Execute all delete actions defined in this class
|
void |
dispose()
Unregister any listeners,
|
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.
|
int |
getDescendantCount()
Returns the total number of descendant nodes that this node has.
|
android.graphics.drawable.Drawable |
getIconDrawable()
Get the icon drawable
|
int |
getPreferredListIndex()
Returns the preferred index in the list for the item to be displayed at.
|
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 |
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
|
void |
onDataStoreContentChanged(FeatureDataStore2 dataStore) |
void |
onFeatureDeleted(FeatureDataStore2 dataStore,
long fid) |
void |
onFeatureInserted(FeatureDataStore2 dataStore,
long fid,
FeatureDefinition2 def,
long version) |
void |
onFeatureUpdated(FeatureDataStore2 dataStore,
long fid,
int modificationMask,
java.lang.String name,
Geometry geom,
Style style,
AttributeSet attribs,
int attribsUpdateType) |
void |
onFeatureVisibilityChanged(FeatureDataStore2 dataStore,
long fid,
boolean visible) |
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, disposeChildren, disposeItems, findChild, getAssociationKey, getChildActions, getChildAt, getChildCount, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getExtraView, getFilter, getFooterView, getHeaderView, getIconColor, getIconUri, getListItemView, getLocalData, getLocalData, getSorts, getUID, getVisibility, isDisposed, isGetChildrenSupported, isVisible, 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
getVisibility
isVisible
public ModelsHierarchyListItem(MapView view, FeatureLayer3 layer, android.widget.BaseAdapter listener)
public void dispose()
HierarchyListItem2
dispose
in interface HierarchyListItem2
dispose
in class AbstractHierarchyListItem2
public java.lang.String getTitle()
HierarchyListItem
getTitle
in interface HierarchyListItem
public int getPreferredListIndex()
HierarchyListItem
getPreferredListIndex
in interface HierarchyListItem
getPreferredListIndex
in class AbstractHierarchyListItem2
-1
to indicate no preference
(FIFO).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
.protected void refreshImpl()
AbstractHierarchyListItem2
refreshImpl
in class AbstractHierarchyListItem2
public boolean hideIfEmpty()
HierarchyListItem2
hideIfEmpty
in interface HierarchyListItem2
public boolean isMultiSelectSupported()
HierarchyListItem2
isMultiSelectSupported
in interface HierarchyListItem2
isMultiSelectSupported
in class AbstractHierarchyListItem2
public <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 boolean setVisible(boolean visible)
Visibility
setVisible
in interface Visibility
setVisible
in class AbstractHierarchyListItem2
visible
- boolean true is visible, false invisible.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 java.util.Set<HierarchyListItem> find(java.lang.String terms)
find
in interface Search
find
in class AbstractHierarchyListItem2
public void onDataStoreContentChanged(FeatureDataStore2 dataStore)
public void onFeatureInserted(FeatureDataStore2 dataStore, long fid, FeatureDefinition2 def, long version)
public void onFeatureUpdated(FeatureDataStore2 dataStore, long fid, int modificationMask, java.lang.String name, Geometry geom, Style style, AttributeSet attribs, int attribsUpdateType)
public void onFeatureDeleted(FeatureDataStore2 dataStore, long fid)
public void onFeatureVisibilityChanged(FeatureDataStore2 dataStore, long fid, boolean visible)