net.sf.tacos.partial
Class PartialLink

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.apache.tapestry.AbstractComponent
          extended byorg.apache.tapestry.link.AbstractLinkComponent
              extended byorg.apache.tapestry.link.DirectLink
                  extended bynet.sf.tacos.partial.PartialLink
All Implemented Interfaces:
IComponent, IDirect, ILinkComponent, IRender, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, PartialTrigger

public abstract class PartialLink
extends DirectLink
implements PartialTrigger


Constructor Summary
PartialLink()
           
 
Method Summary
 ILink getLink(IRequestCycle cycle)
           
abstract  IEngineService getPartialService()
          Injected partial service
 String getPartId(IRequestCycle cycle)
          Get the id of the current Part being rendered by this link.
abstract  Object getRefreshParts()
          Parts to refresh parameter
abstract  String getScriptCall()
          Parameter javascript call string
 void renderAdditionalAttributes(IMarkupWriter writer, IRequestCycle cycle)
           
abstract  void setScriptCall(String value)
          Set javascript call string
 
Methods inherited from class org.apache.tapestry.link.DirectLink
constructServiceParameters, getListener, getListenerInvoker, getParameters, isStateful, trigger
 
Methods inherited from class org.apache.tapestry.link.AbstractLinkComponent
addEventHandler, cleanupAfterRender, finishLoad, getAnchor, getLink, getRenderer, isDisabled, renderComponent, setRenderer, writeEventHandler, writeEventHandlers
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, toString
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IDirect
isStateful, trigger
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty
 
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
 
Methods inherited from interface org.apache.tapestry.components.ILinkComponent
getTarget
 

Constructor Detail

PartialLink

public PartialLink()
Method Detail

getPartialService

public abstract IEngineService getPartialService()
Injected partial service


getLink

public ILink getLink(IRequestCycle cycle)
Specified by:
getLink in interface ILinkComponent

getPartId

public String getPartId(IRequestCycle cycle)
Get the id of the current Part being rendered by this link.

Specified by:
getPartId in interface PartialTrigger
Parameters:
cycle -
Returns:
Id of part, null if not found.

renderAdditionalAttributes

public void renderAdditionalAttributes(IMarkupWriter writer,
                                       IRequestCycle cycle)
Specified by:
renderAdditionalAttributes in interface ILinkComponent

getScriptCall

public abstract String getScriptCall()
Parameter javascript call string


setScriptCall

public abstract void setScriptCall(String value)
Set javascript call string


getRefreshParts

public abstract Object getRefreshParts()
Parts to refresh parameter

Specified by:
getRefreshParts in interface PartialTrigger
Returns:
Object/list/array of part ids.