public class SheetGroupListItem extends AbstractHierarchyListItem2 implements android.view.View.OnClickListener, Visibility2, Delete, 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 |
---|
SheetGroupListItem(MapView mapView,
java.io.File file) |
Modifier and Type | Method and Description |
---|---|
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
|
java.lang.String |
getTitle()
Returns the title to be displayed for the item.
|
java.io.File |
getUserObject()
Returns the user object associated with the node.
|
boolean |
hideIfEmpty()
Count towards parent children if this item's children is empty
|
void |
onClick(android.view.View v) |
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
|
void |
syncRefresh(android.widget.BaseAdapter listener,
HierarchyListFilter filter,
java.util.List<com.atakmap.android.rubbersheet.ui.AbstractSheetHierarchyListItem> sheets) |
async, buildQueryParams, delete, dispose, disposeChildren, disposeItems, find, findChild, getAction, getAssociationKey, getChildActions, getChildAt, getChildCount, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getFilter, getFooterView, getHeaderView, getIconColor, getIconUri, getListItemView, getLocalData, getLocalData, getPreferredListIndex, getSorts, getUID, getVisibility, isChildSupported, isDisposed, isGetChildrenSupported, isMultiSelectSupported, isVisible, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, setVisible, sortItems, syncRefresh, updateChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVisibility
isVisible, setVisible
public SheetGroupListItem(MapView mapView, java.io.File file)
public java.lang.String getTitle()
HierarchyListItem
getTitle
in interface HierarchyListItem
public android.graphics.drawable.Drawable getIconDrawable()
HierarchyListItem2
getIconDrawable
in interface HierarchyListItem2
getIconDrawable
in class AbstractHierarchyListItem2
public int getDescendantCount()
HierarchyListItem
getDescendantCount
in interface HierarchyListItem
public java.io.File 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 void syncRefresh(android.widget.BaseAdapter listener, HierarchyListFilter filter, java.util.List<com.atakmap.android.rubbersheet.ui.AbstractSheetHierarchyListItem> sheets)
protected void refreshImpl()
AbstractHierarchyListItem2
refreshImpl
in class AbstractHierarchyListItem2
public boolean hideIfEmpty()
HierarchyListItem2
hideIfEmpty
in interface HierarchyListItem2