1 26 27 28 package org.objectweb.openccm.explorer.DCI; 29 30 import java.awt.Color ; 31 32 import javax.swing.JPanel ; 33 34 import org.objectweb.util.explorer.api.Panel; 35 import org.objectweb.util.explorer.api.TreeView; 36 37 43 public class NodeManagerPanel 44 implements Panel { 45 46 private JPanel panel_; 47 48 public NodeManagerPanel(){ 49 panel_ = new JPanel (); 50 panel_.setBackground(Color.white); 51 } 52 53 56 public void selected(TreeView treeView) { 57 org.objectweb.openccm.OpenCCM_DCI.NodeManager 58 node=(org.objectweb.openccm.OpenCCM_DCI.NodeManager) 59 treeView.getSelectedObject(); 60 org.ist.coach.DCI.DCIDescriptor[] desc= 61 node.provide_node_information().get_node_properties(); 62 63 panel_.add(new javax.swing.JTextArea (desc[0].descriptor)); 64 } 65 66 69 public Object getPanel() { 70 return panel_; 71 } 72 73 76 public void unselected(TreeView treeView) { 77 } 79 80 81 } 82 | Popular Tags |