View Javadoc

1   /*
2    * joey-sample1 and its relative products are published under the terms
3    * of the Apache Software License.
4    * 
5    * Created on 2004/12/12 22:11:35
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  }