public class VideoBrowserMapOverlay.ListModel extends AbstractHierarchyListItem2
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
_context |
protected int |
_descendantCount |
protected ConnectionEntry |
_entry |
protected URIContentHandler |
_handler |
protected MapView |
_mapView |
protected com.atakmap.android.video.overlay.VideoFolderHierarchyListItem |
_parent |
protected int |
_showMenuIndex |
protected java.lang.String |
_showMenuUID |
protected boolean |
_vizSupported |
protected static int |
AUTO_HIDE_TIME_MS |
asyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandler
INVISIBLE, SEMI_VISIBLE, VISIBLE
Modifier and Type | Method and Description |
---|---|
boolean |
accept(FOVFilter.MapState fov) |
protected static void |
addFiles(SendDialog.Builder b,
ConnectionEntry entry) |
boolean |
delete()
Execute all delete actions defined in this class
|
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.
|
java.lang.String |
getDescription()
Get the item description (shown in gray under the title)
|
protected java.util.List<ConnectionEntry> |
getEntries() |
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.view.View |
getHeaderView()
Get the custom header view for this list
|
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.util.List<HierarchyListItem.Sort> |
getSorts()
Return all applicable sort modes for this list
|
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
|
ConnectionEntry |
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 |
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
|
protected void |
promptDelete() |
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, getAssociationKey, getChildActions, getChildAt, getChildCount, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDropDownSize, getExtraView, getFilter, getFooterView, getIconColor, getIconUri, getListItemView, getLocalData, getLocalData, 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
delete, getDeleteActions
onBackButton, onListVisible, onOpenList
protected static final int AUTO_HIDE_TIME_MS
protected boolean _vizSupported
protected java.lang.String _showMenuUID
protected int _showMenuIndex
protected int _descendantCount
protected final MapView _mapView
protected final android.content.Context _context
protected final ConnectionEntry _entry
protected final URIContentHandler _handler
protected final com.atakmap.android.video.overlay.VideoFolderHierarchyListItem _parent
public ListModel(MapView mapView)
protected java.util.List<ConnectionEntry> getEntries()
public java.lang.String getTitle()
HierarchyListItem
getTitle
in interface HierarchyListItem
public java.lang.String getUID()
HierarchyListItem
getUID
in interface HierarchyListItem
public android.graphics.drawable.Drawable getIconDrawable()
HierarchyListItem2
getIconDrawable
in interface HierarchyListItem2
public int getPreferredListIndex()
HierarchyListItem
getPreferredListIndex
in interface HierarchyListItem
getPreferredListIndex
in class AbstractHierarchyListItem2
-1
to indicate no preference
(FIFO).public ConnectionEntry 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
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 android.view.View getHeaderView()
HierarchyListItem2
getHeaderView
in interface HierarchyListItem2
getHeaderView
in class AbstractHierarchyListItem2
public java.lang.String getDescription()
HierarchyListItem2
getDescription
in interface HierarchyListItem2
public boolean isMultiSelectSupported()
HierarchyListItem2
isMultiSelectSupported
in interface HierarchyListItem2
public int getDescendantCount()
HierarchyListItem
getDescendantCount
in interface HierarchyListItem
public boolean isChildSupported()
HierarchyListItem
isChildSupported
in interface HierarchyListItem
public void refreshImpl()
AbstractHierarchyListItem2
public boolean onCloseList(HierarchyListAdapter om, boolean forceClose)
HierarchyListStateListener
onCloseList
in interface HierarchyListStateListener
om
- Overlay Manager adapterforceClose
- True if the list is being forcibly closedpublic java.util.List<HierarchyListItem.Sort> getSorts()
HierarchyListItem2
getSorts
in interface HierarchyListItem2
getSorts
in class AbstractHierarchyListItem2
public <T extends Action> T getAction(java.lang.Class<T> clazz)
HierarchyListItem
getAction
in interface HierarchyListItem
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 java.util.Set<HierarchyListItem> find(java.lang.String terms)
find
in interface Search
find
in class AbstractHierarchyListItem2
public 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 hideIfEmpty()
HierarchyListItem2
hideIfEmpty
in interface HierarchyListItem2
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
protected static void addFiles(SendDialog.Builder b, ConnectionEntry entry)
public boolean isSupported(java.lang.Class<?> target)
Exportable
isSupported
in interface Exportable
target
- the target classpublic boolean delete()
AbstractHierarchyListItem2
delete
in interface Delete
delete
in class AbstractHierarchyListItem2
protected void promptDelete()
public boolean accept(FOVFilter.MapState fov)
accept
in interface FOVFilter.Filterable