public class FeatureHierarchyListItem extends AbstractChildlessListItem implements GoTo, Visibility, ILocation, Delete, android.view.View.OnClickListener
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFromasyncRefresh, children, disposed, filter, listener, postFilter, reusable, uiHandler| Constructor and Description |
|---|
FeatureHierarchyListItem(FeatureDataStore2 spatialDb,
Feature feature) |
FeatureHierarchyListItem(FeatureDataStore2 spatialDb,
long fid,
java.lang.String name,
java.lang.String iconUri,
int iconColor,
boolean isPoint,
double minX,
double minY,
double maxX,
double maxY) |
FeatureHierarchyListItem(FeatureDataStore spatialDb,
Feature feature) |
| Modifier and Type | Method and Description |
|---|---|
static int |
colorFromStyle(Style style) |
boolean |
delete()
Execute all delete actions defined in this class
|
<T extends Action> |
getAction(java.lang.Class<T> clazz)
Returns an instance of the specified action that can be used to interact with the node's
underlying content.
|
protected GeoBounds |
getBounds() |
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 convertView,
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 |
FeatureDataStore2 |
getFeatureDatabase()
Get the feature database associated with this item
|
FeatureQueryParameters |
getFeatureQueryParams()
Get the query parameters for obtaining this set of features
|
int |
getIconColor()
Returns the color to be applied to the icon.
|
java.lang.String |
getIconUri()
Returns the URI for the icon for the node.
|
GeoPoint |
getPoint(GeoPoint point)
Get the geo point of this item
For shapes this is usually the center point.
|
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.Object |
getUserObject()
Returns the user object associated with the node.
|
boolean |
goTo(boolean select) |
static java.lang.String |
iconUriFromStyle(Style style) |
boolean |
isVisible()
Gets the current visibility state.
|
void |
onClick(android.view.View v) |
boolean |
setVisible(boolean visible)
Encapsulation of the visibility toggle implementation as an action.
|
dispose, getChildAt, getChildCount, getDescendantCount, getVisibility, hideIfEmpty, isChildSupported, refresh, refreshImplasync, buildQueryParams, disposeChildren, disposeItems, find, findChild, getAssociationKey, getChildActions, getChildren, getCustomLayout, getDefaultSortModes, getDeleteActions, getDescription, getDropDownSize, getExtraView, getFilter, getFooterView, getHeaderView, getIconDrawable, getListItemView, getLocalData, getLocalData, getPreferredListIndex, getSorts, isDisposed, isGetChildrenSupported, isMultiSelectSupported, notifyListener, notifyListener, postAccept, postRefresh, refresh, refresh, refresh, requestRefresh, requestRefresh, search, setLocalData, setPostFilter, sortItems, syncRefresh, updateChildrenpublic FeatureHierarchyListItem(FeatureDataStore spatialDb,
Feature feature)
public FeatureHierarchyListItem(FeatureDataStore2 spatialDb,
Feature feature)
public FeatureHierarchyListItem(FeatureDataStore2 spatialDb,
long fid,
java.lang.String name,
java.lang.String iconUri,
int iconColor,
boolean isPoint,
double minX,
double minY,
double maxX,
double maxY)
public static java.lang.String iconUriFromStyle(Style style)
public static int colorFromStyle(Style style)
protected GeoBounds getBounds()
public int getIconColor()
HierarchyListItemgetIconColor in interface HierarchyListItemgetIconColor in class AbstractHierarchyListItem20xFFFFFFFF (-1)
to use the original color.public java.lang.String getIconUri()
HierarchyListItemgetIconUri in interface HierarchyListItemgetIconUri in class AbstractHierarchyListItem2null if the node
has no icon, or "gone" to remove the icon space entirely.public java.lang.String getTitle()
HierarchyListItemgetTitle in interface HierarchyListItempublic java.lang.String getUID()
HierarchyListItemgetUID in interface HierarchyListItemgetUID in class AbstractHierarchyListItem2public <T extends Action> T getAction(java.lang.Class<T> clazz)
HierarchyListItemgetAction in interface HierarchyListItemgetAction in class AbstractHierarchyListItem2clazz - The action classnull if the specified
action is not supported for the node.public java.lang.Object getUserObject()
HierarchyListItemgetUserObject in interface HierarchyListItemnull.public android.view.View getExtraView(android.view.View convertView,
android.view.ViewGroup parent)
HierarchyListItem2HierarchyListItem.getExtraView() except the existing view is provided
This is to allow more efficient view cycling when scrolling through OMgetExtraView in interface HierarchyListItem2getExtraView in class AbstractHierarchyListItem2convertView - 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 void onClick(android.view.View v)
onClick in interface android.view.View.OnClickListenerpublic boolean setVisible(boolean visible)
VisibilitysetVisible in interface VisibilitysetVisible in class AbstractHierarchyListItem2visible - boolean true is visible, false invisible.public boolean isVisible()
VisibilityisVisible in interface VisibilityisVisible in class AbstractChildlessListItempublic boolean delete()
AbstractHierarchyListItem2delete in interface Deletedelete in class AbstractHierarchyListItem2public GeoPoint getPoint(GeoPoint point)
ILocationpublic GeoBounds getBounds(MutableGeoBounds bounds)
ILocationpublic FeatureDataStore2 getFeatureDatabase()
public FeatureQueryParameters getFeatureQueryParams()