FileDocCategorySizeDatePackage
ViewsTreeModel.javaAPI DocAndroid 1.5 API1828Wed May 06 22:41:10 BST 2009com.android.hierarchyviewer.ui.model

ViewsTreeModel

public class ViewsTreeModel extends Object implements TreeModel

Fields Summary
private final com.android.hierarchyviewer.scene.ViewNode
root
Constructors Summary
public ViewsTreeModel(com.android.hierarchyviewer.scene.ViewNode root)

        this.root = root;
    
Methods Summary
public voidaddTreeModelListener(javax.swing.event.TreeModelListener treeModelListener)

    
public java.lang.ObjectgetChild(java.lang.Object o, int i)

        return ((ViewNode) o).children.get(i);
    
public intgetChildCount(java.lang.Object o)

        return ((ViewNode) o).children.size();
    
public intgetIndexOfChild(java.lang.Object parent, java.lang.Object child)

        //noinspection SuspiciousMethodCalls
        return ((ViewNode) parent).children.indexOf(child);
    
public java.lang.ObjectgetRoot()

        return root;
    
public booleanisLeaf(java.lang.Object child)

        ViewNode node = (ViewNode) child;
        return node.children == null || node.children.size() == 0;
    
public voidremoveTreeModelListener(javax.swing.event.TreeModelListener treeModelListener)

    
public voidvalueForPathChanged(javax.swing.tree.TreePath treePath, java.lang.Object child)