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, refreshasync, 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, updateChildrenprotected 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()
HierarchyListItemgetIconColor in interface HierarchyListItemgetIconColor in class AbstractHierarchyListItem20xFFFFFFFF (-1)
to use the original color.public TiffImageMetadata getExif()
getExif in interface GalleryItempublic java.lang.String getName()
getName in interface GalleryItempublic java.lang.String getUID()
HierarchyListItemgetUID in interface HierarchyListItemgetUID in interface GalleryItemgetUID in class AbstractHierarchyListItem2protected java.lang.String findAttachmentUID()
public java.lang.String getURI()
getURI in interface GalleryItempublic java.lang.String getTitle()
HierarchyListItemgetTitle in interface HierarchyListItempublic java.lang.String getDescription()
HierarchyListItem2getDescription in interface HierarchyListItem2getDescription in class AbstractHierarchyListItem2public java.lang.String getAuthor()
getAuthor in interface GalleryItempublic void refreshImpl()
AbstractHierarchyListItem2refreshImpl in class AbstractChildlessListItempublic 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 MapItem getMapItem()
getMapItem in interface MapItemUserpublic GeoPoint getPoint(GeoPoint point)
ILocationpublic GeoBounds getBounds(MutableGeoBounds bounds)
ILocationpublic java.lang.String toString()
toString in class java.lang.Object