public class TakServerHierarchyListItem extends AbstractHierarchyListItem2 implements Visibility2, Search
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAK_SERVER_URL_TAG |
asyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandlerINVISIBLE, SEMI_VISIBLE, VISIBLE| Constructor and Description |
|---|
TakServerHierarchyListItem(android.content.Context context,
com.atakmap.android.channels.ui.overlay.ChannelsOverlayListModel listModel,
java.lang.String host) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getAssociationKey()
Get settings screen association key (see DropDownReceiver)
|
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)
|
android.graphics.drawable.Drawable |
getIconDrawable()
Get the icon drawable
|
TAKServer |
getServer() |
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
|
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 |
isMultiSelectSupported()
Does this list support multi-selection of its items?
|
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.
|
async, buildQueryParams, delete, dispose, disposeChildren, disposeItems, findChild, getChildActions, getChildAt, getChildCount, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDropDownSize, getExtraView, getExtraView, getFilter, getFooterView, getHeaderView, getIconColor, getIconUri, getListItemView, getLocalData, getLocalData, getPreferredListIndex, getVisibility, isChildSupported, isDisposed, isGetChildrenSupported, isVisible, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, sortItems, syncRefresh, updateChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVisibilityisVisiblepublic static final java.lang.String TAK_SERVER_URL_TAG
public TakServerHierarchyListItem(android.content.Context context,
com.atakmap.android.channels.ui.overlay.ChannelsOverlayListModel listModel,
java.lang.String host)
protected void refreshImpl()
AbstractHierarchyListItem2refreshImpl in class AbstractHierarchyListItem2public boolean hideIfEmpty()
HierarchyListItem2hideIfEmpty in interface HierarchyListItem2public java.lang.String getTitle()
HierarchyListItemgetTitle in interface HierarchyListItempublic java.lang.String getDescription()
HierarchyListItem2getDescription in interface HierarchyListItem2getDescription in class AbstractHierarchyListItem2public java.lang.String getUID()
HierarchyListItemgetUID in interface HierarchyListItemgetUID in class AbstractHierarchyListItem2public int getDescendantCount()
HierarchyListItemgetDescendantCount in interface HierarchyListItempublic java.lang.Object getUserObject()
HierarchyListItemgetUserObject in interface HierarchyListItemnull.public boolean isMultiSelectSupported()
HierarchyListItem2isMultiSelectSupported in interface HierarchyListItem2isMultiSelectSupported in class AbstractHierarchyListItem2public android.graphics.drawable.Drawable getIconDrawable()
HierarchyListItem2getIconDrawable in interface HierarchyListItem2getIconDrawable in class AbstractHierarchyListItem2public java.util.List<HierarchyListItem.Sort> getSorts()
HierarchyListItem2getSorts in interface HierarchyListItem2getSorts in class AbstractHierarchyListItem2public TAKServer getServer()
public java.lang.String getAssociationKey()
HierarchyListItem2getAssociationKey in interface HierarchyListItem2getAssociationKey in class AbstractHierarchyListItem2public java.util.Set<HierarchyListItem> find(java.lang.String terms)
find in interface Searchfind in class AbstractHierarchyListItem2public boolean setVisible(boolean visible)
VisibilitysetVisible in interface VisibilitysetVisible in class AbstractHierarchyListItem2visible - boolean true is visible, false invisible.public <T extends Action> T getAction(java.lang.Class<T> clazz)
HierarchyListItemgetAction in interface HierarchyListItemgetAction in class AbstractHierarchyListItem2clazz - The action classnull if the specified
action is not supported for the node.