android inventory agent 1.0.0

Code documentation

--- layout: codeDocumentation --- --- layout: codeDocumentation --- DrawerAdapter
org.glpi.inventory.agent.adapter

Class DrawerAdapter

  • java.lang.Object
    • android.widget.BaseAdapter
      • org.glpi.inventory.agent.adapter.DrawerAdapter
  • All Implemented Interfaces:
    android.widget.Adapter, android.widget.ListAdapter, android.widget.SpinnerAdapter


    public class DrawerAdapter
    extends android.widget.BaseAdapter
    • Field Summary

      • Fields inherited from interface android.widget.Adapter

        IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
    • Constructor Summary

      Constructors 
      Constructor and Description
      DrawerAdapter(android.app.Activity activity, java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> data) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getCount()
      Get count of the data
      java.lang.Object getItem(int position)
      Get the data item associated with the specified position
      long getItemId(int position)
      Get the row ID associated with the specified position
      android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
      Get a View that displays the data at the specified position
      • Methods inherited from class android.widget.BaseAdapter

        areAllItemsEnabled, getAutofillOptions, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserver
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DrawerAdapter

        public DrawerAdapter(android.app.Activity activity,
                             java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> data)
    • Method Detail

      • getCount

        public int getCount()
        Get count of the data
        Returns:
        int the data size
      • getItem

        public java.lang.Object getItem(int position)
        Get the data item associated with the specified position
        Parameters:
        position - of the item whose data we want
        Returns:
        Object the data at the specified position
      • getItemId

        public long getItemId(int position)
        Get the row ID associated with the specified position
        Parameters:
        position - of the item whose row ID we want
        Returns:
        long the ID of the item at the specified position
      • getView

        public android.view.View getView(int position,
                                         android.view.View convertView,
                                         android.view.ViewGroup parent)
        Get a View that displays the data at the specified position
        Parameters:
        position - of the item within the adapter's data set of the item whose View we want
        convertView - the old View to reuse, if possible
        parent - the parent that this View will eventually be attached to
        Returns:
        View a View corresponding to the data at the specified position
Back to top