Example usage for org.apache.poi.hssf.usermodel HSSFHyperlink setLabel

List of usage examples for org.apache.poi.hssf.usermodel HSSFHyperlink setLabel

Introduction

In this page you can find the example usage for org.apache.poi.hssf.usermodel HSSFHyperlink setLabel.

Prototype

@Override
public void setLabel(String label) 

Source Link

Document

Sets text label for this hyperlink

Usage

From source file:org.sakaiproject.signup.tool.downloadEvents.EventWorksheet.java

License:Educational Community License

private HSSFHyperlink setAttachmentURLLinks(SignupAttachment attach) {
    HSSFHyperlink hsHyperlink = new HSSFHyperlink(HSSFHyperlink.LINK_URL);
    String link = this.sakaiFacade.getServerConfigurationService().getServerUrl() + attach.getLocation();
    hsHyperlink.setAddress(link);//from w  w w.j a  va  2s  .co  m
    hsHyperlink.setLabel(attach.getFilename());
    return hsHyperlink;
}