Class BaseDomainAdapter

  • Direct Known Subclasses:
    MultipleDomainAdapter, SingleDomainAdapter

    public abstract class BaseDomainAdapter
    extends androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
    Base class that handles lists used in DomainFragment
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearFilter()
      Displays all of the items from the domain list
      void filter​(java.lang.String queryString)
      Filters the list based on the given keyword
      int getItemCount()  
      java.util.List<java.lang.String> getSelection()
      Returns list of selected domain items
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter

        bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onBindViewHolder, onCreateViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
      • Methods inherited from class java.lang.Object

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

      • getItemCount

        public int getItemCount()
        Specified by:
        getItemCount in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
      • getSelection

        public java.util.List<java.lang.String> getSelection()
        Returns list of selected domain items
        Returns:
        list of selected domain items
      • filter

        public void filter​(java.lang.String queryString)
        Filters the list based on the given keyword
        Parameters:
        queryString - keyword to filter the list
      • clearFilter

        public void clearFilter()
        Displays all of the items from the domain list