Coverage Report - org.trails.link.ListAllLink
 
Classes in this File Line Coverage Branch Coverage Complexity
ListAllLink
0% 
N/A 
0
 
 1  
 /*
 2  
  * Copyright 2004 Chris Nelson
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 7  
  * Unless required by applicable law or agreed to in writing,
 8  
  * software distributed under the License is distributed on an "AS IS" BASIS,
 9  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 10  
  * See the License for the specific language governing permissions and limitations under the License.
 11  
  */
 12  
 package org.trails.link;
 13  
 
 14  
 import org.apache.tapestry.annotations.ComponentClass;
 15  
 import org.trails.page.PageType;
 16  
 
 17  
 /**
 18  
  * ListAllLink renders a single link that has a target of the List page for a given object.  It is abstract because
 19  
  * Tapestry will populate the bean with getter/setters for fields in it.  The base class is constructed with the name
 20  
  * of the type that this link will connect to, and all list operations are synthesized from that single name.
 21  
  */
 22  
 @ComponentClass
 23  0
 public abstract class ListAllLink extends AbstractTypeNavigationLink
 24  
 {
 25  
 
 26  
         public PageType getPageType()
 27  
         {
 28  0
                 return PageType.LIST;
 29  
         }
 30  
 
 31  
         public String getBundleKey()
 32  
         {
 33  0
                 return "org.trails.component.listalllink";
 34  
         }
 35  
 
 36  
         public String getDefaultMessage()
 37  
         {
 38  0
                 return "[TRAILS][ORG.TRAILS.COMPONENT.LISTALLLINK]";
 39  
         }
 40  
 
 41  
         public Object getParams()
 42  
         {
 43  0
                 return getClassDescriptor().getPluralDisplayName();
 44  
         }
 45  
 }