001 package biz.hammurapi.swing; 002 003 import javax.swing.tree.TreeNode; 004 005 /** 006 * Classes which know how to display itself in a tree and table implement 007 * this interface. 008 * @author Pavel 009 * 010 */ 011 public interface Visualizable { 012 013 /** 014 * @param parent 015 * @param title 016 * @param o 017 * @return Tree node for displaying object in browser. 018 */ 019 TreeNode toTreeNode(TreeNode parent, String title); 020 021 }