public abstract class AbstractChildlessListItem extends AbstractHierarchyListItem2
AbstractHierarchyListItem2
where children items
are not supportedHierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom
asyncRefresh, 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, updateChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTitle, getUserObject
public boolean isChildSupported()
HierarchyListItem
isChildSupported
in interface HierarchyListItem
isChildSupported
in class AbstractHierarchyListItem2
public HierarchyListItem getChildAt(int index)
HierarchyListItem
getChildAt
in interface HierarchyListItem
getChildAt
in class AbstractHierarchyListItem2
index
- The indexpublic int getChildCount()
HierarchyListItem
getChildCount
in interface HierarchyListItem
getChildCount
in class AbstractHierarchyListItem2
public int getDescendantCount()
HierarchyListItem
public HierarchyListFilter refresh(HierarchyListFilter filter)
AbstractHierarchyListItem2
refresh
in interface HierarchyListItem2
refresh
in class AbstractHierarchyListItem2
filter
- The new filterprotected void refreshImpl()
AbstractHierarchyListItem2
refreshImpl
in class AbstractHierarchyListItem2
public boolean hideIfEmpty()
HierarchyListItem2
public void dispose()
HierarchyListItem2
dispose
in interface HierarchyListItem2
dispose
in class AbstractHierarchyListItem2
public int getVisibility()
AbstractHierarchyListItem2
getVisibility
in class AbstractHierarchyListItem2
public boolean isVisible()
isVisible
in class AbstractHierarchyListItem2