public class DangerCloseAdapter
extends android.widget.BaseAdapter
Modifier and Type | Class and Description |
---|---|
static interface |
DangerCloseAdapter.CustomViewAdapter
Allows for a plugin developer to customize or tweak the the display of of an item.
|
static class |
DangerCloseAdapter.ViewHolder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DIRNAME |
static java.util.HashSet<java.lang.Integer> |
favorites |
static java.lang.String |
ORDNANCE_XML |
static java.util.HashSet<java.lang.Integer> |
removing |
static java.lang.String |
TAG |
Constructor and Description |
---|
DangerCloseAdapter(android.content.Context context,
MapView mapView,
java.lang.String targetUID) |
DangerCloseAdapter(android.content.Context context,
MapView mapView,
java.lang.String targetUID,
java.lang.String from) |
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
java.lang.Object |
getItem(int arg0) |
long |
getItemId(int arg0) |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
void |
onCustomInfoReceived(int id,
java.lang.String name,
java.lang.String description,
java.lang.String standing,
java.lang.String prone,
java.lang.String proneProt,
java.lang.String ricochetFan)
This method will initiate the creation of a custom weapon.
|
static void |
registerCustomViewAdapter(DangerCloseAdapter.CustomViewAdapter cva)
Register a custom view adapter for modifying the muninition visual display.
|
void |
removeAll() |
areAllItemsEnabled, getAutofillOptions, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserver
public static final java.lang.String DIRNAME
public static final java.lang.String ORDNANCE_XML
public static java.util.HashSet<java.lang.Integer> favorites
public static java.util.HashSet<java.lang.Integer> removing
public static final java.lang.String TAG
public DangerCloseAdapter(android.content.Context context, MapView mapView, java.lang.String targetUID)
public DangerCloseAdapter(android.content.Context context, MapView mapView, java.lang.String targetUID, java.lang.String from)
public int getCount()
getCount
in interface android.widget.Adapter
public java.lang.Object getItem(int arg0)
getItem
in interface android.widget.Adapter
public long getItemId(int arg0)
getItemId
in interface android.widget.Adapter
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
getView
in interface android.widget.Adapter
public void removeAll()
public void onCustomInfoReceived(int id, java.lang.String name, java.lang.String description, java.lang.String standing, java.lang.String prone, java.lang.String proneProt, java.lang.String ricochetFan)
name
- - name of weapon (cannot be empty)description
- - description (can be empty)standing
- - standing value (cannot be null or negative)prone
- - prone value (cannot be null or negative)proneProt
- - prone protected value (can be null)public static void registerCustomViewAdapter(DangerCloseAdapter.CustomViewAdapter cva)
cva
- the custom view adapter