1 16 19 20 package org.apache.pluto.portalImpl.om.window.impl; 21 22 import java.util.HashMap ; 23 24 import org.apache.pluto.om.common.ObjectID; 25 import org.apache.pluto.om.window.PortletWindow; 26 import org.apache.pluto.om.window.PortletWindowList; 27 import org.apache.pluto.om.window.PortletWindowListCtrl; 28 29 public class PortletWindowListImpl implements PortletWindowList, PortletWindowListCtrl { 30 31 32 HashMap windows = null; 33 34 public PortletWindowListImpl() { 35 windows = new HashMap (); 36 } 37 38 40 45 public java.util.Iterator iterator() { 46 47 return windows.values().iterator(); 48 } 49 50 51 59 public PortletWindow get(ObjectID id) 60 { 61 return (PortletWindow)windows.get(id.toString()); 62 } 63 64 66 71 public void add(PortletWindow window) { 72 if(window != null) { 73 windows.put(window.getId().toString(), window); 74 } 75 } 76 77 82 public void remove(ObjectID id){ 83 if(id != null) { 84 windows.remove(id.toString()); 85 } 86 } 87 } 88 | Popular Tags |