1 26 27 package org.objectweb.util.browser.core.panel; 28 29 import java.awt.Color ; 30 import javax.swing.JPanel ; 31 import javax.swing.JLabel ; 32 33 import org.objectweb.util.browser.api.Panel; 34 import org.objectweb.util.browser.api.TreeView; 35 36 44 public abstract class TitlePanel 45 extends JPanel 46 implements Panel { 47 48 52 public void selected(TreeView treeview) { 53 setBackground(Color.white); 54 add(new JLabel (getTitle(treeview))); 55 } 56 57 61 public JPanel getPanel() { 62 return this; 63 } 64 65 69 public void unselected(TreeView treeview) { 70 } 72 73 76 public abstract String getTitle(TreeView treeView); 77 78 } 79 | Popular Tags |