1 28 29 package org.objectweb.util.browser.plugins.fractal.context; 30 31 import java.util.List ; 32 import java.util.Vector ; 33 34 import org.objectweb.fractal.api.Component; 35 import org.objectweb.fractal.api.control.SuperController; 36 import org.objectweb.util.browser.api.Entry; 37 import org.objectweb.util.browser.core.naming.AbstractContext; 38 import org.objectweb.util.browser.core.naming.DefaultEntry; 39 import org.objectweb.util.browser.core.naming.DefaultName; 40 import org.objectweb.util.browser.plugins.fractal.FcBrowser; 41 42 47 public class SuperControllerContext 48 extends AbstractContext 49 { 50 51 57 58 private SuperController sc_ = null; 59 60 66 72 78 82 public Entry[] getEntries(){ 83 Component[] ci = sc_.getFcSuperComponents(); 84 List l = new Vector (); 85 86 for (int i = 0 ; i < ci.length ; i++){ 88 l.add(new DefaultEntry(ci[i], 89 new DefaultName(FcBrowser.getName(ci[i])))); 90 } 91 return (Entry[])l.toArray(new Entry[0]); 92 } 93 94 100 106 public void setWrapped(Object object) { 107 sc_ = (SuperController) object; 108 } 109 110 116 public Object getWrapped() { 117 return sc_; 118 } 119 } 120 | Popular Tags |