public class MapItemHierarchyListItem extends AbstractChildlessListItem implements Visibility, GoTo, Delete, ILocation, Export, MapItemUser, HashtagContent
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom
Modifier and Type | Field and Description |
---|---|
protected MapItem |
item |
protected MapView |
mapView |
static java.lang.String |
TAG |
asyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandler
Constructor and Description |
---|
MapItemHierarchyListItem(MapView mapView,
MapItem item) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete()
Execute all delete actions defined in this class
|
boolean |
equals(java.lang.Object o) |
GeoBounds |
getBounds(MutableGeoBounds bounds)
Get the geo bounds of this item
For points this is usually a bounds representation of the point
|
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 |
HashtagSet |
getHashtags()
Get tags associated with this content
|
int |
getIconColor()
Returns the color to be applied to the icon.
|
android.graphics.drawable.Drawable |
getIconDrawable()
Get the icon drawable
|
MapItem |
getMapItem() |
GeoPoint |
getPoint(GeoPoint point)
Get the geo point of this item
For shapes this is usually the center point.
|
java.lang.String |
getTitle()
Title for this content
|
java.lang.String |
getUID()
Returns the unique ID of the list item
|
java.lang.String |
getURI()
Get a URI that represents this content
|
java.lang.Object |
getUserObject()
Returns the user object associated with the node.
|
boolean |
goTo(boolean select) |
int |
hashCode() |
void |
highlight(boolean highlight)
Show or hide the light gray highlight behind the marker for emphasis
|
boolean |
isSupported(java.lang.Class<?> target)
Check if this instance supports the specified target class type
|
boolean |
isVisible()
Gets the current visibility state.
|
void |
setHashtags(java.util.Collection<java.lang.String> tags)
Set tags associated with this content
|
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
|
dispose, getChildAt, getChildCount, getDescendantCount, getVisibility, hideIfEmpty, isChildSupported, refresh, refreshImpl
async, buildQueryParams, disposeChildren, disposeItems, find, findChild, getAction, getAssociationKey, getChildActions, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getFilter, getFooterView, getHeaderView, getIconUri, getListItemView, getLocalData, getLocalData, getPreferredListIndex, getSorts, isDisposed, isGetChildrenSupported, isMultiSelectSupported, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, sortItems, syncRefresh, updateChildren
public static final java.lang.String TAG
protected final MapItem item
protected final MapView mapView
public boolean delete()
AbstractHierarchyListItem2
delete
in interface Delete
delete
in class AbstractHierarchyListItem2
public void highlight(boolean highlight)
highlight
- - true if the highlight should be shown, false if it should be hiddenpublic MapItem getMapItem()
getMapItem
in interface MapItemUser
public java.lang.String getTitle()
URIContent
getTitle
in interface URIContent
getTitle
in interface HierarchyListItem
public java.lang.String getUID()
HierarchyListItem
getUID
in interface HierarchyListItem
getUID
in class AbstractHierarchyListItem2
public boolean isVisible()
Visibility
isVisible
in interface Visibility
isVisible
in class AbstractChildlessListItem
public boolean setVisible(boolean visible)
Visibility
setVisible
in interface Visibility
setVisible
in class AbstractHierarchyListItem2
visible
- boolean true is visible, false invisible.public GeoPoint getPoint(GeoPoint point)
ILocation
public GeoBounds getBounds(MutableGeoBounds bounds)
ILocation
public android.graphics.drawable.Drawable getIconDrawable()
HierarchyListItem2
getIconDrawable
in interface URIContent
getIconDrawable
in interface HierarchyListItem2
getIconDrawable
in class AbstractHierarchyListItem2
public int getIconColor()
HierarchyListItem
getIconColor
in interface URIContent
getIconColor
in interface HierarchyListItem
getIconColor
in class AbstractHierarchyListItem2
0xFFFFFFFF
(-1
)
to use the original color.public java.lang.Object 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
getExtraView
in class AbstractHierarchyListItem2
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean isSupported(java.lang.Class<?> target)
Exportable
isSupported
in interface Exportable
target
- the target classpublic 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 java.lang.String getURI()
URIContent
getURI
in interface URIContent
public void setHashtags(java.util.Collection<java.lang.String> tags)
HashtagContent
setHashtags
in interface HashtagContent
tags
- List of tags or null to removepublic HashtagSet getHashtags()
HashtagContent
getHashtags
in interface HashtagContent