1 26 27 package org.objectweb.util.browser.plugin.java.map; 28 import javax.swing.JPanel ; 29 30 import org.objectweb.util.browser.api.Panel; 31 import org.objectweb.util.browser.api.TreeView; 32 33 41 public class MapTitlePanel 42 implements Panel 43 { 44 45 51 52 protected javax.swing.JPanel panel_; 53 54 60 66 72 75 public void selected(TreeView treeView) 76 { 77 java.util.Map map = (java.util.Map )treeView.getSelectedObject(); 79 80 panel_ = new JPanel (); 82 panel_.setBackground(java.awt.Color.WHITE); 83 panel_.add(new javax.swing.JLabel ("Map Entries (" + map.size() + " entries)")); 84 } 85 86 89 public JPanel getPanel() 90 { 91 return panel_; 92 } 93 94 97 public void unselected(TreeView treeview) 98 { 99 } 101 102 } 103 104 | Popular Tags |