public class GRGMapOverlay.GRGMapOverlayListModel extends AbstractHierarchyListItem2 implements Search, Export, GroupDelete, Visibility2, android.widget.CompoundButton.OnCheckedChangeListener
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFromasyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandlerINVISIBLE, SEMI_VISIBLE, VISIBLE| Constructor and Description |
|---|
GRGMapOverlayListModel(android.widget.BaseAdapter listener,
HierarchyListFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Unregister any listeners,
|
java.util.Set<HierarchyListItem> |
find(java.lang.String searchterm) |
int |
getDescendantCount()
Returns the total number of descendant nodes that this node has.
|
android.view.View |
getExtraView()
Returns the extra view, if any, associated with the node.
|
android.view.View |
getFooterView()
Get the custom footer 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.lang.String |
getTitle()
Returns the title to be displayed for the 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 |
isSupported(java.lang.Class<?> target)
Check if this instance supports the specified target class type
|
void |
onCheckedChanged(android.widget.CompoundButton cb,
boolean checked) |
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, delete, disposeChildren, disposeItems, findChild, getAction, getAssociationKey, getChildActions, getChildAt, getChildCount, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getFilter, getHeaderView, getIconColor, getIconUri, getListItemView, getLocalData, getLocalData, getSorts, getUID, getVisibility, isChildSupported, isDisposed, isGetChildrenSupported, isMultiSelectSupported, 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, waitdelete, getDeleteActionsgetVisibilityisVisiblepublic GRGMapOverlayListModel(android.widget.BaseAdapter listener,
HierarchyListFilter filter)
public java.lang.String getTitle()
HierarchyListItemgetTitle in interface HierarchyListItempublic android.graphics.drawable.Drawable getIconDrawable()
HierarchyListItem2getIconDrawable in interface HierarchyListItem2getIconDrawable in class AbstractHierarchyListItem2public int getPreferredListIndex()
HierarchyListItemgetPreferredListIndex in interface HierarchyListItemgetPreferredListIndex in class AbstractHierarchyListItem2-1 to indicate no preference
(FIFO).public int getDescendantCount()
HierarchyListItemgetDescendantCount in interface HierarchyListItempublic java.lang.Object getUserObject()
HierarchyListItemgetUserObject in interface HierarchyListItemnull.public android.view.View getExtraView()
HierarchyListItemgetExtraView in interface HierarchyListItemgetExtraView in class AbstractHierarchyListItem2null if there is no view.public android.view.View getFooterView()
HierarchyListItem2getFooterView in interface HierarchyListItem2getFooterView in class AbstractHierarchyListItem2public void refreshImpl()
AbstractHierarchyListItem2refreshImpl in class AbstractHierarchyListItem2public void dispose()
HierarchyListItem2dispose in interface HierarchyListItem2dispose in class AbstractHierarchyListItem2public boolean hideIfEmpty()
HierarchyListItem2hideIfEmpty in interface HierarchyListItem2public void onCheckedChanged(android.widget.CompoundButton cb,
boolean checked)
onCheckedChanged in interface android.widget.CompoundButton.OnCheckedChangeListenerpublic boolean setVisible(boolean visible)
VisibilitysetVisible in interface VisibilitysetVisible in class AbstractHierarchyListItem2visible - boolean true is visible, false invisible.public java.util.Set<HierarchyListItem> find(java.lang.String searchterm)
find in interface Searchfind in class AbstractHierarchyListItem2public boolean isSupported(java.lang.Class<?> target)
ExportableisSupported in interface Exportabletarget - the target classpublic java.lang.Object toObjectOf(java.lang.Class<?> target,
ExportFilters filters)
throws FormatNotSupportedException
ExportabletoObjectOf in interface Exportabletarget - 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.