|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.widget.BaseAdapter
android.widget.ArrayAdapter<MobileWorkItem>
de.msponer.android.yac.adapter.LocalizedWorkItemAdapter
public class LocalizedWorkItemAdapter
Adapter class for localized work items.
Field Summary |
---|
Fields inherited from interface android.widget.Adapter |
---|
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION |
Constructor Summary | |
---|---|
LocalizedWorkItemAdapter(Context context,
int textViewResourceId,
List<MobileWorkItem> workitemList)
Constructor setting the required fields. |
Method Summary | |
---|---|
View |
getView(int position,
View convertView,
ViewGroup parent)
The view component containing the localized work item information. |
List<MobileWorkItem> |
getWorkitemList()
Returns the current localized work item list. |
static double |
round(double val,
int sca)
Rounds a given value. |
void |
setWorkitemList(List<MobileWorkItem> workitemList)
Sets the current localized work item list. |
Methods inherited from class android.widget.ArrayAdapter |
---|
add, clear, createFromResource, getContext, getCount, getDropDownView, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setNotifyOnChange, sort |
Methods inherited from class android.widget.BaseAdapter |
---|
areAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalizedWorkItemAdapter(Context context, int textViewResourceId, List<MobileWorkItem> workitemList)
context
- The application context.textViewResourceId
- The view id.workitemList
- The localized work item list.Method Detail |
---|
public View getView(int position, View convertView, ViewGroup parent)
getView
in interface Adapter
getView
in class ArrayAdapter<MobileWorkItem>
public static double round(double val, int sca)
val
- The value to round.sca
- The scale.
public void setWorkitemList(List<MobileWorkItem> workitemList)
workitemList
- The localized work item list.public List<MobileWorkItem> getWorkitemList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |