org.apache.tapestry.contrib.link
Class PopupLinkRenderer

java.lang.Object
  extended by org.apache.tapestry.link.DefaultLinkRenderer
      extended by org.apache.tapestry.contrib.link.PopupLinkRenderer
All Implemented Interfaces:
ILinkRenderer

public class PopupLinkRenderer
extends DefaultLinkRenderer

This renderer emits javascript to launch the link in a window.

Since:
3.0.1
Version:
$Id: PopupLinkRenderer.java 386648 2006-03-17 14:57:32Z jkuhnert $
Author:
David Solis

Field Summary
 
Fields inherited from class org.apache.tapestry.link.DefaultLinkRenderer
SHARED_INSTANCE
 
Constructor Summary
PopupLinkRenderer()
           
PopupLinkRenderer(String windowName, String features)
          Initializes the name and features for javascript window.open function.
 
Method Summary
protected  String constructURL(ILink link, String anchor, IRequestCycle cycle)
          Converts the EngineServiceLink into a URI or URL.
 String getFeatures()
           
 String getWindowName()
           
 void setFeatures(String features)
           
 void setWindowName(String windowName)
           
 
Methods inherited from class org.apache.tapestry.link.DefaultLinkRenderer
afterBodyRender, beforeBodyRender, getElement, getHasBody, getUrlAttribute, renderLink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupLinkRenderer

public PopupLinkRenderer()

PopupLinkRenderer

public PopupLinkRenderer(String windowName,
                         String features)
Initializes the name and features for javascript window.open function.

Parameters:
windowName - the window name
features - the window features
Method Detail

constructURL

protected String constructURL(ILink link,
                              String anchor,
                              IRequestCycle cycle)
Description copied from class: DefaultLinkRenderer
Converts the EngineServiceLink into a URI or URL. This implementation simply invokes ILink.getURL(String, boolean).

Overrides:
constructURL in class DefaultLinkRenderer
See Also:
DefaultLinkRenderer.constructURL(org.apache.tapestry.engine.ILink, String, org.apache.tapestry.IRequestCycle)

getWindowName

public String getWindowName()

setWindowName

public void setWindowName(String windowName)

getFeatures

public String getFeatures()

setFeatures

public void setFeatures(String features)