1 26 package org.objectweb.util.explorer.swing.panel; 27 28 import java.awt.Color ; 29 30 import javax.swing.JLabel ; 31 import javax.swing.JPanel ; 32 33 import org.objectweb.util.explorer.api.Panel; 34 import org.objectweb.util.explorer.api.TreeView; 35 36 44 public abstract class TitlePanel 45 extends JPanel 46 implements Panel 47 { 48 49 55 61 67 73 76 public void selected(TreeView treeview) { 77 setBackground(Color.white); 78 add(new JLabel (getTitle(treeview))); 79 } 80 81 84 public Object getPanel() { 85 return this; 86 } 87 88 91 public void unselected(TreeView treeview) { 92 } 94 95 101 104 public abstract String getTitle(TreeView treeView); 105 106 } 107 108 | Popular Tags |