com.primix.tapestry.link
Class Page

java.lang.Object
  |
  +--com.primix.tapestry.AbstractComponent
        |
        +--com.primix.tapestry.link.AbstractServiceLink
              |
              +--com.primix.tapestry.link.Page
All Implemented Interfaces:
IComponent, IRender, IServiceLink

public class Page
extends AbstractServiceLink

A component for creating a navigation link to another page, using the page service.
Parameter Type Read / Write Required Default Description
page java.lang.String R yes   The name of a page to link to.
disabled boolean R No true Controls whether the link is produced. If disabled, the portion of the template the link surrounds is still rendered, but not the link itself.
scheme java.lang.String R no   If specified, then a longer URL (including scheme, server and possibly port) is generated using the specified scheme. Server is determined fromt he incoming request, and port is deterimined from the port paramter or the incoming request.
port int R no   If specified, then a longer URL (including scheme, server and port) is generated using the specified port. The server is determined from the incoming request, the scheme from the scheme paramter or the incoming request.
anchor java.lang.String R no   The name of an anchor or element to link to. The final URL will have '#' and the anchor appended to it.

Informal parameters are allowed.

Version:
$Id: Page.java,v 1.6 2001/05/02 14:15:16 hship Exp $
Author:
Howard Ship

Fields inherited from class com.primix.tapestry.AbstractComponent
id, page, specification, wrapped, wrappedCount
 
Fields inherited from interface com.primix.tapestry.components.IServiceLink
ATTRIBUTE_NAME
 
Constructor Summary
Page()
           
 
Method Summary
protected  java.lang.String[] getContext(IRequestCycle cycle)
          Returns a single-element String array; the lone element is the name of the page, retrieved from the 'page' parameter.
 IBinding getPageBinding()
           
protected  java.lang.String getServiceName(IRequestCycle cycle)
          Returns IEngineService.PAGE_SERVICE.
 void setPageBinding(IBinding value)
           
 
Methods inherited from class com.primix.tapestry.link.AbstractServiceLink
addEventHandler, buildURL, getAnchorBinding, getDisabledBinding, getPortBinding, getSchemeBinding, isDisabled, render, setAnchorBinding, setDisabledBinding, setPortBinding, setSchemeBinding, setup
 
Methods inherited from class com.primix.tapestry.AbstractComponent
addAsset, addComponent, addWrapped, cleanupAfterRender, cleanupComponent, finishLoad, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getPage, getSpecification, prepareForRender, renderWrapped, reset, setBinding, setContainer, setId, setPage, setSpecification, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.primix.tapestry.IComponent
addAsset, addComponent, addWrapped, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getPage, getSpecification, renderWrapped, setBinding, setContainer, setId, setPage, setSpecification
 

Constructor Detail

Page

public Page()
Method Detail

getPageBinding

public IBinding getPageBinding()

getServiceName

protected java.lang.String getServiceName(IRequestCycle cycle)
Returns IEngineService.PAGE_SERVICE.
Overrides:
getServiceName in class AbstractServiceLink
Following copied from class: com.primix.tapestry.link.AbstractServiceLink
See Also:
AbstractServiceLink.buildURL(IRequestCycle, String[])

setPageBinding

public void setPageBinding(IBinding value)

getContext

protected java.lang.String[] getContext(IRequestCycle cycle)
                                 throws RequestCycleException
Returns a single-element String array; the lone element is the name of the page, retrieved from the 'page' parameter.
Overrides:
getContext in class AbstractServiceLink