public abstract class AbstractChildlessListItem extends AbstractHierarchyListItem2
AbstractHierarchyListItem2 where children items
are not supportedHierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFromasyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandler| Constructor and Description |
|---|
AbstractChildlessListItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Unregister any listeners,
|
HierarchyListItem |
getChildAt(int index)
Returns the child node at the specified index.
|
int |
getChildCount()
Returns the number of children that this node has.
|
int |
getDescendantCount()
Returns the total number of descendant nodes that this node has.
|
int |
getVisibility()
Typical calculation for determining ternary visibility
Note that this class does not implement Visibility or Visibility2
|
boolean |
hideIfEmpty()
Count towards parent children if this item's children is empty
|
boolean |
isChildSupported()
Check if list item can contain children
|
boolean |
isVisible() |
HierarchyListFilter |
refresh(HierarchyListFilter filter)
Send a refresh request to the thread pool
|
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
|
async, buildQueryParams, delete, disposeChildren, disposeItems, find, findChild, getAction, getAssociationKey, getChildActions, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getExtraView, getFilter, getFooterView, getHeaderView, getIconColor, getIconDrawable, getIconUri, getListItemView, getLocalData, getLocalData, getPreferredListIndex, getSorts, getUID, isDisposed, isGetChildrenSupported, isMultiSelectSupported, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, setVisible, sortItems, syncRefresh, updateChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTitle, getUserObjectpublic boolean isChildSupported()
HierarchyListItemisChildSupported in interface HierarchyListItemisChildSupported in class AbstractHierarchyListItem2public HierarchyListItem getChildAt(int index)
HierarchyListItemgetChildAt in interface HierarchyListItemgetChildAt in class AbstractHierarchyListItem2index - The indexpublic int getChildCount()
HierarchyListItemgetChildCount in interface HierarchyListItemgetChildCount in class AbstractHierarchyListItem2public int getDescendantCount()
HierarchyListItempublic HierarchyListFilter refresh(HierarchyListFilter filter)
AbstractHierarchyListItem2refresh in interface HierarchyListItem2refresh in class AbstractHierarchyListItem2filter - The new filterprotected void refreshImpl()
AbstractHierarchyListItem2refreshImpl in class AbstractHierarchyListItem2public boolean hideIfEmpty()
HierarchyListItem2public void dispose()
HierarchyListItem2dispose in interface HierarchyListItem2dispose in class AbstractHierarchyListItem2public int getVisibility()
AbstractHierarchyListItem2getVisibility in class AbstractHierarchyListItem2public boolean isVisible()
isVisible in class AbstractHierarchyListItem2