1 26 27 package org.objectweb.openccm.explorer.DCI; 28 29 import org.ist.coach.DCI.DCIInformation; 30 import org.ist.coach.DCI.DCIManager; 31 import org.ist.coach.DCI.NodeManager; 32 import org.objectweb.openccm.explorer.CORBA.TypageCORBA; 33 import org.objectweb.util.explorer.api.Table; 34 import org.objectweb.util.explorer.api.TreeView; 35 import org.objectweb.util.explorer.core.naming.lib.DefaultEntry; 36 37 44 public class DCINodeTable 45 implements Table 46 { 47 48 54 60 66 protected String getName(org.omg.CORBA.Object o) { 67 TypageCORBA tc = new TypageCORBA(o, org.objectweb.openccm.corba.TheORB.getORB()); 68 return tc.getTypeID(); 69 } 70 71 77 80 public String [] getHeaders(TreeView treeView) { 81 return new String []{"Node"}; 82 } 83 84 87 public Object [][] getRows(TreeView treeView) { 88 DCIManager DCIManager_ = (DCIManager)treeView.getSelectedObject(); 89 DCIInformation DCIInfo = DCIManager_.provide_dci_information(); 90 NodeManager[] nodeManagerList = DCIInfo.get_node_managers(); 91 Object [][] contenu = new Object [nodeManagerList.length][1]; 92 for(int i=0 ; i<nodeManagerList.length ; i++) 93 contenu[i][0] = new DefaultEntry(nodeManagerList[i].node_name(), nodeManagerList[i]); 94 return contenu; 95 } 96 } 97 | Popular Tags |