001 package mondrian.gui.validate; 002 003 /** 004 * A generalization of a <code>javax.swing.tree.TreeModel</code>. 005 * 006 * @author mlowery 007 */ 008 public interface TreeModel { 009 /** 010 * Returns the number of children of <code>parent</code>. 011 */ 012 int getChildCount(Object parent); 013 014 /** 015 * Returns the child at <code>index</code>. 016 */ 017 Object getChild(Object parent, int index); 018 019 /** 020 * Returns the root object of this tree model. 021 */ 022 Object getRoot(); 023 } 024 025 // End TreeModel.java