org.trails.component
Class ListAllLink

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by org.trails.component.TrailsComponent
                  extended by org.trails.component.Link
                      extended by org.trails.component.AbstractTypeNavigationLink
                          extended by org.trails.component.ListAllLink
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IDirectEvent, org.apache.tapestry.internal.Component, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent

public abstract class ListAllLink
extends AbstractTypeNavigationLink

ListAllLink renders a single link that has a target of the List page for a given object. It is abstract because Tapestry will populate the bean with getter/setters for fields in it. The base class is constructed with the name of the type that this link will connect to, and all list operations are synthesized from that single name.

Author:
fus8882

Field Summary
 
Fields inherited from class org.trails.component.TrailsComponent
DEFAULT
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
ListAllLink()
           
 
Method Summary
 java.lang.String getLinkText()
          Get the text for the rendered link
 java.lang.String getListPageName()
          For the page type TrailsPage.PageType.LIST, try to get the name of the page.
 
Methods inherited from class org.trails.component.AbstractTypeNavigationLink
generateLinkText, getClassDescriptor, getDescriptorService, getType, setType
 
Methods inherited from class org.trails.component.Link
getPageResolver
 
Methods inherited from class org.trails.component.TrailsComponent
getMessage, getResourceBundleMessageSource
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, getContainedRenderers, getInnerRenderers, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

ListAllLink

public ListAllLink()
Method Detail

getLinkText

public java.lang.String getLinkText()
Get the text for the rendered link

Returns:
Full i18n text in the form "List Foobars"

getListPageName

public java.lang.String getListPageName()
For the page type TrailsPage.PageType.LIST, try to get the name of the page. Called by ListAllLink.jwc

Returns:
Name of the page


Copyright © 2004-2007. All Rights Reserved.