1 package cve.core.elementEEL; 2 3 import java.util.*; 4 import javax.swing.*; 5 6 13 public class Unit extends ABaseObject implements IUnit 14 { 15 private Vector presenters; 16 17 public Unit(){ 18 presenters=new Vector(); 19 } 20 21 25 public void addPresenter(Presenter pre){ 26 presenters.add(pre); 27 } 28 29 32 public Collection getPresenters(){ 33 return presenters; 34 } 35 36 39 public Collection view() { 40 Vector setPresenters=new Vector(); 41 Iterator itPre=presenters.iterator(); 42 while (itPre.hasNext()){ 43 Presenter presenterIst=(Presenter)itPre.next(); 44 setPresenters.add((JInternalFrame)presenterIst.visualizza()); 45 } 46 return (Collection)setPresenters; 47 } 48 49 } 50 51 | Popular Tags |