1
2
3
4
5
6
7 package org.asyrinx.joey.tapestry.components.entity;
8
9 import org.apache.tapestry.IRequestCycle;
10 import org.asyrinx.joey.tapestry.page.EntityPageDictionary;
11
12 /***
13 * @author takeshi
14 */
15 public abstract class EntityDetailLink extends AbstractEntityInstanceActionLink implements EntityPagingAction {
16
17 public abstract EntityPageDictionary getDetailPageDictionary();
18
19 public abstract String getDetailPageDictionaryName();
20
21 public abstract String getDetailPageName();
22
23 private final EntityPagingStrategy pagingStrategy = new EntityPagingStrategy(this);
24
25 /***
26 * @param cycle
27 */
28 protected void doAction(IRequestCycle cycle) {
29 final Object entity = deserialize(cycle);
30 pagingStrategy.showEntity(cycle, entity);
31 }
32
33 }