1 19 20 package org.netbeans.spi.viewmodel; 21 22 23 24 29 public interface TreeModel extends Model { 30 31 36 public static final String ROOT = "Root"; 37 38 43 public abstract Object getRoot (); 44 45 57 public abstract Object [] getChildren (Object parent, int from, int to) 58 throws UnknownTypeException; 59 60 67 public abstract boolean isLeaf (Object node) throws UnknownTypeException; 68 69 79 public abstract int getChildrenCount (Object node) 80 throws UnknownTypeException; 81 82 87 public abstract void addModelListener (ModelListener l); 88 89 94 public abstract void removeModelListener (ModelListener l); 95 } 96 | Popular Tags |