1 15 package org.apache.tapestry; 16 17 import java.util.Collection ; 18 import java.util.Map ; 19 20 import org.apache.hivemind.ApplicationRuntimeException; 21 import org.apache.hivemind.LocationHolder; 22 import org.apache.hivemind.Messages; 23 import org.apache.tapestry.engine.IPageLoader; 24 import org.apache.tapestry.listener.ListenerMap; 25 import org.apache.tapestry.spec.IComponentSpecification; 26 27 35 36 public interface IComponent extends IRender, LocationHolder 37 { 38 39 42 43 public void addAsset(String name, IAsset asset); 44 45 51 52 public void addComponent(IComponent component); 53 54 64 65 public void addBody(IRender element); 66 67 72 73 public Map getAssets(); 74 75 78 79 public IAsset getAsset(String name); 80 81 86 87 public IBinding getBinding(String name); 88 89 96 97 public Collection getBindingNames(); 98 99 105 106 public Map getBindings(); 107 108 115 116 public IComponent getComponent(String id); 117 118 124 125 public IComponent getContainer(); 126 127 131 132 public void setContainer(IComponent value); 133 134 142 143 public String getExtendedId(); 144 145 152 153 public String getId(); 154 155 159 160 public void setId(String value); 161 162 172 173 public String getIdPath(); 174 175 178 179 public IPage getPage(); 180 181 185 186 public void setPage(IPage value); 187 188 191 192 public IComponentSpecification getSpecification(); 193 194 201 202 public void renderBody(IMarkupWriter writer, IRequestCycle cycle); 203 204 210 211 public void setBinding(String name, IBinding binding); 212 213 227 228 public Map getComponents(); 229 230 243 244 public void finishLoad(IRequestCycle cycle, IPageLoader loader, 245 IComponentSpecification specification); 246 247 253 254 public Messages getMessages(); 255 256 261 262 public INamespace getNamespace(); 263 264 269 270 public void setNamespace(INamespace namespace); 271 272 280 public void setProperty(String propertyName, Object value); 281 282 289 public Object getProperty(String propertyName); 290 291 296 297 public boolean isRendering(); 298 299 307 308 public void enterActiveState(); 309 310 315 316 public IBeanProvider getBeans(); 317 318 325 326 public ListenerMap getListeners(); 327 328 339 340 public String getMessage(String key); 341 } | Popular Tags |