Examples of addHyperlink()


Examples of org.apache.poi.hslf.usermodel.SlideShow.addHyperlink()

        String text = shape.getText();
        Hyperlink link = new Hyperlink();
        link.setAddress("http://www.apache.org");
        link.setTitle(shape.getText());
        int linkId = ppt.addHyperlink(link);

        shape.setHyperlink(linkId, 0, text.length());

        slide.addShape(shape);
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.SlideShow.addHyperlink()

        String text = shape.getText();
        Hyperlink link = new Hyperlink();
        link.setAddress("http://www.apache.org");
        link.setTitle(shape.getText());
        int linkId = ppt.addHyperlink(link);

        shape.setHyperlink(linkId, 0, text.length());

        slide.addShape(shape);
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.SlideShow.addHyperlink()

        String text = textBox1.getText();
        Hyperlink link = new Hyperlink();
        link.setAddress("http://www.apache.org");
        link.setTitle(textBox1.getText());
        int linkId = ppt.addHyperlink(link);

        // apply link to the text
        textBox1.setHyperlink(linkId, 0, text.length());

        slideA.addShape(textBox1);
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.SlideShow.addHyperlink()

        textBox2.setText("Go to slide #3");
        textBox2.setAnchor(new Rectangle(100, 300, 200, 50));

        Hyperlink link2 = new Hyperlink();
        link2.setAddress(slideC);
        ppt.addHyperlink(link2);

        // apply link to the whole shape
        textBox2.setHyperlink(link2);

        slideA.addShape(textBox2);
View Full Code Here

Examples of org.eclipse.ui.console.TextConsole.addHyperlink()

        link = (IHyperlink) new URLLink(f.toURI(), ln);
      else
        link = new FileLink(p.getFile(fn), null, -1, -1, ln);

      try {
        console.addHyperlink(link, event.getOffset(), event.getLength());
      } catch (BadLocationException e) {
        e.printStackTrace();
      }
    }
  }
View Full Code Here

Examples of org.eclipse.ui.console.TextConsole.addHyperlink()

      IResource resource = getFile(parser.filename);
      if(resource instanceof IFile) {
        IFile file = (IFile) resource;
        FileLink hyperlink = new FileLink(file,null,-1,-1,parser.linenr);
        try {
          console.addHyperlink(hyperlink, offset+parser.startinmatchedstring,
              parser.endinmatchedstring-parser.startinmatchedstring+1);
        } catch (BadLocationException e) {
        }
      } else {
        //VerilogPlugin.println("Not a filename!");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.