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 3:15:17
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 UserCustomizableEntityViewManager implements EntityViewManager {
20  
21  	/***
22  	 * 
23  	 */
24  	public UserCustomizableEntityViewManager(EntityViewManagerUser user) {
25  		super();
26  		this.user = user;
27  	}
28  
29  	protected final EntityViewManagerUser user;
30  
31  	/***
32  	 * @param invoker
33  	 * @param entityClass
34  	 * @return
35  	 */
36  	public EntityEditView getDetailEditView(
37  		Object invoker,
38  		Class entityClass) {
39  		return user.getEntityViewManager().getDetailEditView(
40  			invoker,
41  			entityClass);
42  	}
43  
44  	/***
45  	 * @return
46  	 */
47  	public EntityServiceManager getEntityServiceManager() {
48  		return user.getEntityViewManager().getEntityServiceManager();
49  	}
50  
51  	/***
52  	 * @param invoker
53  	 * @param entityClass
54  	 * @return
55  	 */
56  	public EntityListView getSelectionListView(
57  		Object invoker,
58  		Class entityClass) {
59  		return user.getEntityViewManager().getSelectionListView(
60  			invoker,
61  			entityClass);
62  	}
63  
64  	/***
65  	 * @param invoker
66  	 * @param entity
67  	 * @return
68  	 */
69  	public EntityEditView showDetailEditView(Object invoker, Object entity) {
70  		return user.getEntityViewManager().showDetailEditView(invoker, entity);
71  	}
72  
73  	/***
74  	 * @param invoker
75  	 * @param entityClass
76  	 * @param entityKey
77  	 * @return
78  	 */
79  	public EntityEditView showDetailEditView(
80  		Object invoker,
81  		Class entityClass,
82  		Serializable entityKey) {
83  		return user.getEntityViewManager().showDetailEditView(
84  			invoker,
85  			entityClass,
86  			entityKey);
87  	}
88  
89  	/***
90  	 * @param invoker
91  	 * @param entityClass
92  	 * @param entityKey
93  	 * @param finder
94  	 * @return
95  	 */
96  	public EntityEditView showDetailEditView(
97  		Object invoker,
98  		Class entityClass,
99  		Serializable entityKey,
100 		EntityService finder) {
101 		return user.getEntityViewManager().showDetailEditView(
102 			invoker,
103 			entityClass,
104 			entityKey,
105 			finder);
106 	}
107 
108 	/***
109 	 * @param invoker
110 	 * @param entityClass
111 	 * @param entities
112 	 * @param selectedEntityKey
113 	 * @return
114 	 */
115 	public EntityListView showSelectionListView(
116 		Object invoker,
117 		Class entityClass,
118 		List entities,
119 		Serializable selectedEntityKey) {
120 		return user.getEntityViewManager().showSelectionListView(
121 			invoker,
122 			entityClass,
123 			entities,
124 			selectedEntityKey);
125 	}
126 
127 	/***
128 	 * @param invoker
129 	 * @param entityClass
130 	 * @param condition
131 	 * @param selectedEntityKey
132 	 * @return
133 	 */
134 	public EntityListView showSelectionListView(
135 		Object invoker,
136 		Class entityClass,
137 		SearchCondition condition,
138 		Serializable selectedEntityKey) {
139 		return user.getEntityViewManager().showSelectionListView(
140 			invoker,
141 			entityClass,
142 			condition,
143 			selectedEntityKey);
144 	}
145 
146 	/***
147 	 * @param invoker
148 	 * @param entityClass
149 	 * @param condition
150 	 * @param selectedEntityKey
151 	 * @param finder
152 	 * @return
153 	 */
154 	public EntityListView showSelectionListView(
155 		Object invoker,
156 		Class entityClass,
157 		SearchCondition condition,
158 		Serializable selectedEntityKey,
159 		EntityService finder) {
160 		return user.getEntityViewManager().showSelectionListView(
161 			invoker,
162 			entityClass,
163 			condition,
164 			selectedEntityKey,
165 			finder);
166 	}
167 
168 }