1 16 17 package org.apache.jetspeed.portal; 18 19 import java.util.Map ; 21 import java.util.Enumeration ; 22 23 32 public interface PortletSet extends Portlet 33 { 34 37 public PortletController getController(); 38 39 42 public void setController(PortletController controller); 43 44 47 public int size(); 48 49 52 public Portlet[] toArray(); 53 54 57 public Portlet getPortletAt(int pos); 58 59 62 public Portlet getPortletByID(String id); 63 64 67 public Portlet getPortletByName(String name); 68 69 72 public Enumeration getPortlets(); 73 74 77 public void addPortlet(Portlet portlet); 78 79 82 public void addPortlet(Portlet portlet, int position); 83 84 87 public void addPortlet(Portlet portlet, Constraints constraints); 88 89 92 public void addPortlet(Portlet portlet, Constraints constraints, int position); 93 94 99 public interface Constraints extends Map 100 { 101 105 public Integer getColumn(); 106 107 112 public void setColumn(Integer col) throws IllegalArgumentException ; 113 114 118 public Integer getRow(); 119 120 125 public void setRow(Integer row) throws IllegalArgumentException ; 126 } 127 } 128 | Popular Tags |