1 15 package org.apache.tapestry.listener; 16 17 import java.util.Map ; 18 19 import org.apache.tapestry.IPage; 20 import org.apache.tapestry.IRequestCycle; 21 import org.apache.tapestry.html.BasePage; 22 23 29 public class ListenerMethodHolder 30 { 31 private RuntimeException _exception; 32 33 private String _pageName; 34 35 private IPage _page; 36 37 public ListenerMethodHolder() 38 { 39 } 40 41 public ListenerMethodHolder(String pageName) 42 { 43 _pageName = pageName; 44 } 45 46 public ListenerMethodHolder(IPage page) 47 { 48 _page = page; 49 } 50 51 public void wrongTypes(Map map) 52 { 53 } 54 55 public void fred(String string, int count) 56 { 57 58 } 59 60 public void wilma(IRequestCycle cycle, int argument) 61 { 62 } 63 64 public void noMatch(String argument1, double argument2, long argument3) 65 { 66 67 } 68 69 public String returnsString() 70 { 71 return null; 72 } 73 74 public BasePage returnsBasePage() 75 { 76 return null; 77 } 78 79 public IPage returnsPage() 80 { 81 return _page; 82 } 83 84 public String returnsPageName() 85 { 86 return _pageName; 87 } 88 89 public Object returnsObject() 90 { 91 return null; 92 } 93 94 public int returnsInt() 95 { 96 return 0; 97 } 98 99 102 103 public void pebbles(IRequestCycle cycle) 104 { 105 } 106 107 public void barney(String string) 108 { 109 110 } 111 112 public void barney() 113 { 114 115 } 116 117 public String toString() 118 { 119 return "ListenerMethodHolder"; 120 } 121 122 public void throwsException() 123 { 124 throw _exception; 125 } 126 127 public void setException(RuntimeException ex) 128 { 129 _exception = ex; 130 } 131 } | Popular Tags |