org.apache.tapestry.contrib.link
Class PopupLinkRenderer
java.lang.Object
org.apache.tapestry.link.DefaultLinkRenderer
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
- Author:
- David Solis
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PopupLinkRenderer
public PopupLinkRenderer()
PopupLinkRenderer
public PopupLinkRenderer(String windowName,
String features)
- Initializes the name and features for javascript window.open function.
- Parameters:
windowName
- the window namefeatures
- the window features
constructURL
protected String constructURL(ILinkComponent component,
IRequestCycle cycle)
- Description copied from class:
DefaultLinkRenderer
- Converts the EngineServiceLink into a URI or URL. This implementation
gets the scheme and anchor from the component (both of which may be
null), and invokes
ILink.getURL(String, String, int, String, boolean)
.
- Overrides:
constructURL
in class DefaultLinkRenderer
- See Also:
DefaultLinkRenderer.constructURL(org.apache.tapestry.components.ILinkComponent,
org.apache.tapestry.IRequestCycle)
getWindowName
public String getWindowName()
setWindowName
public void setWindowName(String windowName)
getFeatures
public String getFeatures()
setFeatures
public void setFeatures(String features)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.