View Javadoc

1   /*
2    * joey and its relative products are published under the terms
3    * of the Apache Software License.
4    * 
5    * Created on 2004/06/09 11:24:53
6    */
7   package org.asyrinx.joey.gui;
8   
9   import java.io.Serializable;
10  import java.util.List;
11  
12  import org.asyrinx.joey.om.EntityService;
13  import org.asyrinx.joey.om.EntityServiceManager;
14  import org.asyrinx.joey.om.SearchCondition;
15  
16  /***
17   * @author akima
18   */
19  public class EntityViewManagerWrapper implements EntityViewManager {
20  
21  	/***
22  	 * 
23  	 */
24  	public EntityViewManagerWrapper(EntityViewManager wrapped) {
25  		super();
26  		this.wrapped = wrapped;
27  	}
28  
29  	protected final EntityViewManager wrapped;
30  
31  	/***
32  	 * @param invoker
33  	 * @param entityClass
34  	 * @return
35  	 */
36  	public EntityEditView getDetailEditView(
37  		Object invoker,
38  		Class entityClass) {
39  		return wrapped.getDetailEditView(invoker, entityClass);
40  	}
41  
42  	/***
43  	 * @return
44  	 */
45  	public EntityServiceManager getEntityServiceManager() {
46  		return wrapped.getEntityServiceManager();
47  	}
48  
49  	/***
50  	 * @param invoker
51  	 * @param entityClass
52  	 * @return
53  	 */
54  	public EntityListView getSelectionListView(
55  		Object invoker,
56  		Class entityClass) {
57  		return wrapped.getSelectionListView(invoker, entityClass);
58  	}
59  
60  	/***
61  	 * @param invoker
62  	 * @param entityClass
63  	 * @param entityKey
64  	 * @return
65  	 */
66  	public EntityEditView showDetailEditView(
67  		Object invoker,
68  		Class entityClass,
69  		Serializable entityKey) {
70  		return wrapped.showDetailEditView(invoker, entityClass, entityKey);
71  	}
72  
73  	/***
74  	 * @param invoker
75  	 * @param entityClass
76  	 * @param entityKey
77  	 * @param finder
78  	 * @return
79  	 */
80  	public EntityEditView showDetailEditView(
81  		Object invoker,
82  		Class entityClass,
83  		Serializable entityKey,
84  		EntityService finder) {
85  		return wrapped.showDetailEditView(
86  			invoker,
87  			entityClass,
88  			entityKey,
89  			finder);
90  	}
91  
92  	/***
93  	 * @param invoker
94  	 * @param entity
95  	 * @return
96  	 */
97  	public EntityEditView showDetailEditView(Object invoker, Object entity) {
98  		return wrapped.showDetailEditView(invoker, entity);
99  	}
100 
101 	/***
102 	 * @param invoker
103 	 * @param entityClass
104 	 * @param entities
105 	 * @param selectedEntityKey
106 	 * @return
107 	 */
108 	public EntityListView showSelectionListView(
109 		Object invoker,
110 		Class entityClass,
111 		List entities,
112 		Serializable selectedEntityKey) {
113 		return wrapped.showSelectionListView(
114 			invoker,
115 			entityClass,
116 			entities,
117 			selectedEntityKey);
118 	}
119 
120 	/***
121 	 * @param invoker
122 	 * @param entityClass
123 	 * @param condition
124 	 * @param selectedEntityKey
125 	 * @return
126 	 */
127 	public EntityListView showSelectionListView(
128 		Object invoker,
129 		Class entityClass,
130 		SearchCondition condition,
131 		Serializable selectedEntityKey) {
132 		return wrapped.showSelectionListView(
133 			invoker,
134 			entityClass,
135 			condition,
136 			selectedEntityKey);
137 	}
138 
139 	/***
140 	 * @param invoker
141 	 * @param entityClass
142 	 * @param condition
143 	 * @param selectedEntityKey
144 	 * @param finder
145 	 * @return
146 	 */
147 	public EntityListView showSelectionListView(
148 		Object invoker,
149 		Class entityClass,
150 		SearchCondition condition,
151 		Serializable selectedEntityKey,
152 		EntityService finder) {
153 		return wrapped.showSelectionListView(
154 			invoker,
155 			entityClass,
156 			condition,
157 			selectedEntityKey,
158 			finder);
159 	}
160 
161 }