1 28 29 package org.objectweb.util.explorer.plugin.java.map.swing; 30 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 class MapTitlePanel 45 implements Panel 46 { 47 48 54 57 protected javax.swing.JPanel panel_; 58 59 65 71 77 80 public void selected(TreeView treeView) 81 { 82 java.util.Map map = (java.util.Map )treeView.getSelectedObject(); 84 85 panel_ = new JPanel (); 87 panel_.setBackground(java.awt.Color.WHITE); 88 panel_.add(new javax.swing.JLabel ("Map Entries (" + map.size() + " entries)")); 89 } 90 91 94 public Object getPanel() 95 { 96 return panel_; 97 } 98 99 102 public void unselected(TreeView treeview) 103 { 104 } 106 107 } 108 109 | Popular Tags |