public abstract class LayerSelectionAdapter
extends android.widget.BaseAdapter
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | LayerSelectionAdapter.OnItemSelectedListener | 
| Modifier and Type | Field and Description | 
|---|---|
| protected android.content.Context | _context | 
| protected MapView | _mapView | 
| protected AtakPreferences | _prefs | 
| protected boolean | active | 
| protected int | normalBackgroundColor | 
| protected int | selectedBackgroundColor | 
| protected boolean | visible | 
| Constructor and Description | 
|---|
| LayerSelectionAdapter(RasterLayer2 layer,
                     FeatureDataStore outlinesDataStore,
                     MapView mapView,
                     android.content.Context context) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addOnItemSelectedListener(LayerSelectionAdapter.OnItemSelectedListener l) | 
| void | dispose() | 
| LayerSelection | findByName(java.lang.String name) | 
| java.util.List<LayerSelection> | getAllSelectionsAt(GeoPoint point) | 
| int | getCount() | 
| java.lang.Object | getItem(int position) | 
| long | getItemId(int position) | 
| LayerSelection | getSelected() | 
| protected abstract java.util.Comparator<LayerSelection> | getSortComparator() | 
| android.view.View | getView(int position,
       android.view.View convertView,
       android.view.ViewGroup parent) | 
| protected abstract android.view.View | getViewImpl(LayerSelection sel,
           int position,
           android.view.View convertView,
           android.view.ViewGroup parent)Returns the view for the specified  LayerSelection. | 
| protected void | invalidate(boolean contentChanged) | 
| boolean | isActive() | 
| boolean | isLocked() | 
| void | onDataStoreContentChanged(FeatureDataStore dataStore) | 
| void | onDataStoreContentChanged(RasterDataStore dataStore) | 
| void | removeOnItemSelectedListener(LayerSelectionAdapter.OnItemSelectedListener l) | 
| int | selectedIndex() | 
| void | setActive(boolean active) | 
| void | setLocked(boolean isLocked) | 
| void | setSelected(DatasetDescriptor tsInfo) | 
| void | setSelected(LayerSelection tsInfo) | 
| void | setVisible(boolean visible) | 
| void | sort() | 
| protected void | sortNoSync() | 
| protected void | validateImpl(boolean rebuild) | 
| protected void | validateNoSync() | 
areAllItemsEnabled, getAutofillOptions, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserverprotected boolean active
protected boolean visible
protected final int selectedBackgroundColor
protected final int normalBackgroundColor
protected final MapView _mapView
protected final android.content.Context _context
protected final AtakPreferences _prefs
public LayerSelectionAdapter(RasterLayer2 layer,
                             FeatureDataStore outlinesDataStore,
                             MapView mapView,
                             android.content.Context context)
public final void setVisible(boolean visible)
public final void setActive(boolean active)
public final boolean isActive()
public void dispose()
protected final void validateNoSync()
protected void validateImpl(boolean rebuild)
protected final void invalidate(boolean contentChanged)
public final int getCount()
public final LayerSelection findByName(java.lang.String name)
public java.lang.Object getItem(int position)
public final long getItemId(int position)
public final void addOnItemSelectedListener(LayerSelectionAdapter.OnItemSelectedListener l)
public final void removeOnItemSelectedListener(LayerSelectionAdapter.OnItemSelectedListener l)
public final boolean isLocked()
public final void setLocked(boolean isLocked)
public final void setSelected(LayerSelection tsInfo)
public final void setSelected(DatasetDescriptor tsInfo)
public LayerSelection getSelected()
public final int selectedIndex()
public final void sort()
protected final void sortNoSync()
protected abstract java.util.Comparator<LayerSelection> getSortComparator()
public java.util.List<LayerSelection> getAllSelectionsAt(GeoPoint point)
public final android.view.View getView(int position,
                                       android.view.View convertView,
                                       android.view.ViewGroup parent)
protected abstract android.view.View getViewImpl(LayerSelection sel, int position, android.view.View convertView, android.view.ViewGroup parent)
LayerSelection. The
 _selections set can always be assumed to be in a valid state
 when this method is invoked.
 
 This method is always invoked while locked on this.
sel - The LayerSelectionposition - The position specified for
                      getView(int, View, ViewGroup)convertView - The position specified for
                      getView(int, View, ViewGroup)parent - The position specified for
                      getView(int, View, ViewGroup)View for the specified
                      LayerSelectionpublic void onDataStoreContentChanged(RasterDataStore dataStore)
public void onDataStoreContentChanged(FeatureDataStore dataStore)