public class GalleryFileItem extends AbstractChildlessListItem implements GalleryItem, MapItemUser, ILocation, GoTo
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom
Modifier and Type | Field and Description |
---|---|
protected URIContentHandler |
contentHandler |
protected TiffImageMetadata |
exif |
protected long |
gpsTime |
protected java.lang.String |
imageCaption |
protected GeoPoint |
location |
protected MapView |
mapView |
asyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandler
Constructor and Description |
---|
GalleryFileItem(MapView mapView,
java.io.File file) |
GalleryFileItem(MapView mapView,
java.io.File file,
MapItem mapItem) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
findAttachmentUID() |
java.lang.String |
getAbsolutePath() |
java.lang.String |
getAuthor() |
GeoBounds |
getBounds(MutableGeoBounds bounds)
Get the geo bounds of this item
For points this is usually a bounds representation of the point
|
java.lang.String |
getDescription()
Get the item description (shown in gray under the title)
|
TiffImageMetadata |
getExif() |
android.view.View |
getExtraView()
Returns the extra view, if any, associated with the node.
|
java.io.File |
getFile() |
android.graphics.drawable.Drawable |
getIcon() |
int |
getIconColor()
Returns the color to be applied to the icon.
|
MapItem |
getMapItem() |
java.lang.String |
getName() |
GeoPoint |
getPoint(GeoPoint point)
Get the geo point of this item
For shapes this is usually the center point.
|
long |
getTime() |
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.String |
getURI() |
java.lang.Object |
getUserObject()
Returns the user object associated with the node.
|
boolean |
goTo(boolean select) |
boolean |
isImage() |
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
|
java.lang.String |
toString() |
dispose, getChildAt, getChildCount, getDescendantCount, getVisibility, hideIfEmpty, isChildSupported, isVisible, refresh
async, buildQueryParams, delete, disposeChildren, disposeItems, find, findChild, getAction, getAssociationKey, getChildActions, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDropDownSize, getExtraView, getFilter, getFooterView, getHeaderView, getIconDrawable, getIconUri, getListItemView, getLocalData, getLocalData, getPreferredListIndex, getSorts, isDisposed, isGetChildrenSupported, isMultiSelectSupported, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, setVisible, sortItems, syncRefresh, updateChildren
protected final MapView mapView
protected GeoPoint location
protected TiffImageMetadata exif
protected long gpsTime
protected java.lang.String imageCaption
protected URIContentHandler contentHandler
public GalleryFileItem(MapView mapView, java.io.File file)
public java.io.File getFile()
public long getTime()
public java.lang.String getAbsolutePath()
public boolean isImage()
public android.graphics.drawable.Drawable getIcon()
public int getIconColor()
HierarchyListItem
getIconColor
in interface HierarchyListItem
getIconColor
in class AbstractHierarchyListItem2
0xFFFFFFFF
(-1
)
to use the original color.public TiffImageMetadata getExif()
getExif
in interface GalleryItem
public java.lang.String getName()
getName
in interface GalleryItem
public java.lang.String getUID()
HierarchyListItem
getUID
in interface HierarchyListItem
getUID
in interface GalleryItem
getUID
in class AbstractHierarchyListItem2
protected java.lang.String findAttachmentUID()
public java.lang.String getURI()
getURI
in interface GalleryItem
public java.lang.String getTitle()
HierarchyListItem
getTitle
in interface HierarchyListItem
public java.lang.String getDescription()
HierarchyListItem2
getDescription
in interface HierarchyListItem2
getDescription
in class AbstractHierarchyListItem2
public java.lang.String getAuthor()
getAuthor
in interface GalleryItem
public void refreshImpl()
AbstractHierarchyListItem2
refreshImpl
in class AbstractChildlessListItem
public java.lang.Object getUserObject()
HierarchyListItem
getUserObject
in interface HierarchyListItem
null
.public android.view.View getExtraView()
HierarchyListItem
getExtraView
in interface HierarchyListItem
getExtraView
in class AbstractHierarchyListItem2
null
if there is no view.public MapItem getMapItem()
getMapItem
in interface MapItemUser
public GeoPoint getPoint(GeoPoint point)
ILocation
public GeoBounds getBounds(MutableGeoBounds bounds)
ILocation
public java.lang.String toString()
toString
in class java.lang.Object