1 15 package org.apache.tapestry.html; 16 17 import org.apache.tapestry.event.PageAttachListener; 18 import org.apache.tapestry.event.PageBeginRenderListener; 19 import org.apache.tapestry.event.PageDetachListener; 20 import org.apache.tapestry.event.PageEndRenderListener; 21 import org.apache.tapestry.event.PageEvent; 22 import org.apache.tapestry.event.PageValidateListener; 23 24 27 public class ListenerFixture implements PageAttachListener, PageBeginRenderListener, 28 PageDetachListener, PageEndRenderListener, PageValidateListener 29 { 30 private String _method; 31 32 public String getMethod() 33 { 34 return _method; 35 } 36 37 public void reset() 38 { 39 _method = null; 40 } 41 42 public void pageAttached(PageEvent event) 43 { 44 _method = "pageAttached"; 45 } 46 47 public void pageBeginRender(PageEvent event) 48 { 49 _method = "pageBeginRender"; 50 } 51 52 public void pageDetached(PageEvent event) 53 { 54 _method = "pageDetached"; 55 } 56 57 public void pageEndRender(PageEvent event) 58 { 59 _method = "pageEndRender"; 60 } 61 62 public void pageValidate(PageEvent event) 63 { 64 _method = "pageValidate"; 65 } 66 } | Popular Tags |