Show HtmlLink.java syntax highlighted
package org.integratedmodelling.thinkcap.widget;
import org.integratedmodelling.thinkcap.PageSpecs;
public class HtmlLink implements IItemDecorator {
private String targetID = null;
private String linkTemplate = null;
/**
* Create the link according to the passed template. @ID@ and @LINK@ in the template string are substituted
* by the specific link parameters given.
*
* @param linkTemplate
*/
public HtmlLink(String linkTemplate) {
this.linkTemplate = linkTemplate;
}
/**
* Create the link according to the passed template and direct the output of following it to
* the element identified by the targetID.
* @param linkTemplate
* @param targetID
*/
public HtmlLink(String linkTemplate, String targetID) {
this.linkTemplate = linkTemplate;
this.targetID = targetID;
}
public String getItem(String item, String ID, PageSpecs pageSpecs) {
// TODO Auto-generated method stub
return null;
}
}
See more files for this project here