001    package org.trails.link;
002    
003    import org.apache.tapestry.annotations.ComponentClass;
004    import org.trails.page.PageType;
005    
006    /**
007     * Finds the search page for the type specified by the typeName
008     * component parameter and forwards to it, setting the example model
009     * to a new instance.  This instance is use to build a query by
010     * example.
011     */
012    @ComponentClass
013    public abstract class SearchLink extends AbstractTypeNavigationLink
014    {
015    
016            public PageType getPageType()
017            {
018                    return PageType.SEARCH;
019            }
020    
021            public String getBundleKey()
022            {
023                    return "org.trails.component.searchlink";
024            }
025    
026            public String getDefaultMessage()
027            {
028                    return "[TRAILS][ORG.TRAILS.COMPONENT.SEARCHLINK]";
029            }
030    
031            public Object getParams()
032            {
033                    return getClassDescriptor().getPluralDisplayName();
034            }
035    }