public abstract class

TreeViewAdapter

extends
java.lang.Object
   ↳
     ↳ com.pdftron.recyclertreeview.TreeViewAdapter<T extends com.pdftron.recyclertreeview.LayoutItemType>
Known Direct Subclasses

Class Overview

https://github.com/TellH/RecyclerTreeView Modified by PDFTron

Summary

Public Constructors
TreeViewAdapter(List<TreeNode<T>> nodes, List<? extends TreeViewBinder> viewBinders, PDFViewCtrl pdfViewCtrl, float scale)
Public Methods
void addChildNode(TreeNode<T> parent, TreeNode<T> newNode, boolean isSearchMode)
int addChildNodes(TreeNode<T> pNode, int startIndex)
void addToRoot(TreeNode<T> newTreeNode)
void collapseBrotherNode(TreeNode<T> pNode)
void collapseNode(TreeNode<T> pNode)
void expandAll(List<TreeNode<T>> rootNode)
void expandAllNodes(TreeNode<T> node)
abstract void expandDisplayNodesNodes(boolean isSearchMode)
void expandNodes(List<TreeNode<T>> rootNodeList)
void findAndCollapseNode(int position)
void findAndExpandNode(int position)
Iterator<TreeNode<T>> getDisplayNodesIterator()
int getExpandableStartPosition(TreeNode<T> selectedNode)
int getItemCount()
long getItemId(int position)
abstract int getItemViewType(int position)
int getSelectedPosition(TreeNode<T> selectedNode)
void ifCollapseChildWhileCollapseParent(boolean toCollapseChild)
void itemMoved(RecyclerView.ViewHolder holder, int fromPosition, int toPosition)
void moveChildNode(TreeNode<T> newParent, TreeNode<T> node, boolean isSearchMode)
void onBindViewHolder(RecyclerView.ViewHolder holder, int position, List<Object> payloads)
void onBindViewHolder(RecyclerView.ViewHolder holder, int position)
RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
void onItemDrag(TreeNode<T> treeNode, int position)
abstract void onItemDrop(RecyclerView.ViewHolder holder, int fromPosition, int toPosition)
void refresh(List<TreeNode<T>> treeNodes)
int removeChildNodes(TreeNode<T> pNode, boolean shouldToggle)
int removeNode(TreeNode<T> node)
void setIsSearchMode(boolean isSearchMode)
void setItems(List<TreeNode<T>> nodes)
abstract void setNodeTreeNode(PDFViewCtrl pdfViewCtrl, TreeNode<T> selectedNode, boolean isSearchMode)
void setSelectionCount(int count)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TreeViewAdapter (List<TreeNode<T>> nodes, List<? extends TreeViewBinder> viewBinders, PDFViewCtrl pdfViewCtrl, float scale)

Public Methods

public void addChildNode (TreeNode<T> parent, TreeNode<T> newNode, boolean isSearchMode)

public int addChildNodes (TreeNode<T> pNode, int startIndex)

public void addToRoot (TreeNode<T> newTreeNode)

public void collapseBrotherNode (TreeNode<T> pNode)

public void collapseNode (TreeNode<T> pNode)

public void expandAll (List<TreeNode<T>> rootNode)

public void expandAllNodes (TreeNode<T> node)

public abstract void expandDisplayNodesNodes (boolean isSearchMode)

public void expandNodes (List<TreeNode<T>> rootNodeList)

public void findAndCollapseNode (int position)

public void findAndExpandNode (int position)

public Iterator<TreeNode<T>> getDisplayNodesIterator ()

public int getExpandableStartPosition (TreeNode<T> selectedNode)

public int getItemCount ()

public long getItemId (int position)

public abstract int getItemViewType (int position)

public int getSelectedPosition (TreeNode<T> selectedNode)

public void ifCollapseChildWhileCollapseParent (boolean toCollapseChild)

public void itemMoved (RecyclerView.ViewHolder holder, int fromPosition, int toPosition)

public void moveChildNode (TreeNode<T> newParent, TreeNode<T> node, boolean isSearchMode)

public void onBindViewHolder (RecyclerView.ViewHolder holder, int position, List<Object> payloads)

public void onBindViewHolder (RecyclerView.ViewHolder holder, int position)

public RecyclerView.ViewHolder onCreateViewHolder (ViewGroup parent, int viewType)

public void onItemDrag (TreeNode<T> treeNode, int position)

public abstract void onItemDrop (RecyclerView.ViewHolder holder, int fromPosition, int toPosition)

public void refresh (List<TreeNode<T>> treeNodes)

public int removeChildNodes (TreeNode<T> pNode, boolean shouldToggle)

public int removeNode (TreeNode<T> node)

public void setIsSearchMode (boolean isSearchMode)

public void setItems (List<TreeNode<T>> nodes)

public abstract void setNodeTreeNode (PDFViewCtrl pdfViewCtrl, TreeNode<T> selectedNode, boolean isSearchMode)

public void setSelectionCount (int count)