1 15 package org.apache.tapestry; 16 17 import java.util.Locale ; 18 19 import org.apache.hivemind.ApplicationRuntimeException; 20 import org.apache.tapestry.event.ChangeObserver; 21 import org.apache.tapestry.event.PageAttachListener; 22 import org.apache.tapestry.event.PageBeginRenderListener; 23 import org.apache.tapestry.event.PageDetachListener; 24 import org.apache.tapestry.event.PageEndRenderListener; 25 import org.apache.tapestry.event.PageRenderListener; 26 import org.apache.tapestry.event.PageValidateListener; 27 import org.apache.tapestry.util.ContentType; 28 29 39 40 public interface IPage extends IComponent 41 { 42 51 52 public void detach(); 53 54 57 58 public IEngine getEngine(); 59 60 64 65 public ChangeObserver getChangeObserver(); 66 67 71 72 public Locale getLocale(); 73 74 78 79 public void setLocale(Locale value); 80 81 86 87 public String getPageName(); 88 89 96 97 public void setPageName(String pageName); 98 99 106 107 public IComponent getNestedComponent(String path); 108 109 119 120 public void attach(IEngine engine, IRequestCycle cycle); 121 122 137 138 public void renderPage(IMarkupWriter writer, IRequestCycle cycle); 139 140 147 148 public void beginPageRender(); 149 150 157 158 public void endPageRender(); 159 160 public void setChangeObserver(ChangeObserver value); 161 162 176 177 public void validate(IRequestCycle cycle); 178 179 183 184 public ContentType getResponseContentType(); 185 186 196 197 public void beginResponse(IMarkupWriter writer, IRequestCycle cycle); 198 199 203 204 public IRequestCycle getRequestCycle(); 205 206 210 211 public Object getVisit(); 212 213 221 222 public Object getGlobal(); 223 224 230 231 public void addPageRenderListener(PageRenderListener listener); 232 233 239 240 public void removePageRenderListener(PageRenderListener listener); 241 242 243 public void addPageBeginRenderListener(PageBeginRenderListener listener); 244 245 246 public void removePageBeginRenderListener(PageBeginRenderListener listener); 247 248 249 250 public void addPageEndRenderListener(PageEndRenderListener listener); 251 252 253 254 public void removePageEndRenderListener(PageEndRenderListener listener); 255 256 259 260 public void addPageDetachListener(PageDetachListener listener); 261 262 265 266 public void removePageDetachListener(PageDetachListener listener); 267 268 271 272 public void addPageValidateListener(PageValidateListener listener); 273 274 277 278 public void removePageValidateListener(PageValidateListener listener); 279 280 281 282 public void addPageAttachListener(PageAttachListener listener); 283 284 285 286 public void removePageAttachListener(PageAttachListener listener); 287 } | Popular Tags |