Examples of Hyperlink


Examples of javafx.scene.control.Hyperlink

                world.getPlane().setState(PlaneState.FLYING);
                world.requestFocus();
            }
        });
        livesLabel= new Label("3");
        highScoresLink= new Hyperlink("High Scores");
        highScoresLink.setOnAction(new EventHandler<ActionEvent>(){
                @Override
                public void handle(ActionEvent t) {
                    world.getHighScoresPane().init();
                    world.getHighScoresPane().setTranslateX(world.getPlane().getTranslateX()-100);
View Full Code Here

Examples of org.apache.poi.common.usermodel.Hyperlink

        Serializable value = extractCell(cell);
       
        if (value != null) {
            Recon recon = null;
           
            Hyperlink hyperlink = cell.getHyperlink();
            if (hyperlink != null) {
                String url = hyperlink.getAddress();
               
                if (url != null && (url.startsWith("http://") ||
                    url.startsWith("https://"))) {
                   
                    final String sig = "freebase.com/view";
View Full Code Here

Examples of org.apache.poi.hslf.model.Hyperlink

                TextRun[] txt = slide[j].getTextRuns();
                for (int k = 0; k < txt.length; k++) {
                    String text = txt[k].getText();
                    Hyperlink[] links = txt[k].getHyperlinks();
                    if(links != null) for (int l = 0; l < links.length; l++) {
                        Hyperlink link = links[l];
                        String title = link.getTitle();
                        String address = link.getAddress();
                        System.out.println("  " + title);
                        System.out.println("  " + address);
                        String substring = text.substring(link.getStartIndex(), link.getEndIndex()-1);//in ppt end index is inclusive
                        System.out.println("  " + substring);
                    }
                }

                //in PowerPoint you can assign a hyperlink to a shape without text,
                //for example to a Line object. The code below demonstrates how to
                //read such hyperlinks
                System.out.println("  reading hyperlinks from the slide's shapes");
                Shape[] sh = slide[j].getShapes();
                for (int k = 0; k < sh.length; k++) {
                    Hyperlink link = sh[k].getHyperlink();
                    if(link != null)  {
                        String title = link.getTitle();
                        String address = link.getAddress();
                        System.out.println("  " + title);
                        System.out.println("  " + address);
                    }
                }
            }
View Full Code Here

Examples of org.apache.poi.ss.formula.functions.Hyperlink

        retval[346] = new Countif();
        retval[347] = new Countblank();

        retval[354] = new Roman();

        retval[359] = new Hyperlink();

        retval[362] = MinaMaxa.MAXA;
        retval[363] = MinaMaxa.MINA;

        for (int i = 0; i < retval.length; i++) {
View Full Code Here

Examples of org.apache.poi.ss.usermodel.Hyperlink

       
        if(linkList != null && !linkList.isEmpty())
        {
          for(Object hyperlink : linkList)
          {
            Hyperlink link = (Hyperlink)hyperlink;
            link.setAddress(anchor.getRefersToFormula());
          }
        }
       
      }
      for (Object pageIndex : pageLinks.keySet())
      {
        List linkList = (List)pageLinks.get(pageIndex);
        if(linkList != null && !linkList.isEmpty())
        {
          for(Object hyperlink : linkList)
          {
            Hyperlink link = (Hyperlink)hyperlink;
            if(isOnePagePerSheet)
            {
              link.setAddress("'" + workbook.getSheetName(((Integer)pageIndex).intValue() - 1)+ "'!A1");
            }
            else
            {
              link.setAddress("'" + workbook.getSheetName(0)+ "'!A1");
            }
          }
        }
       
      }
View Full Code Here

Examples of org.apache.poi.ss.usermodel.Hyperlink

 
  protected void setHyperlinkCell(JRPrintHyperlink hyperlink)
  {
   
    String href = null;
    Hyperlink link = null;
    JRHyperlinkProducer customHandler = getHyperlinkProducer(hyperlink);
    if (customHandler == null)
    {
      switch (hyperlink.getHyperlinkTypeValue())
      {
        case REFERENCE:
        {
          href = hyperlink.getHyperlinkReference();
          if (href != null)
          {
            link = createHelper.createHyperlink(Hyperlink.LINK_URL);
              link.setAddress(href);
          }
          break;
        }
        case LOCAL_ANCHOR :
        {
          href = hyperlink.getHyperlinkAnchor();
          if (href != null)
          {
            link = createHelper.createHyperlink(Hyperlink.LINK_DOCUMENT);
              if(anchorLinks.containsKey(href))
              {
                ((List)anchorLinks.get(href)).add(link);
              }
              else
              {
                List hrefList = new ArrayList();
                hrefList.add(link);
                anchorLinks.put(href, hrefList);
              }
             
          }
          break;
         
        }
        case LOCAL_PAGE :
        {
          Integer hrefPage = hyperlink.getHyperlinkPage();
          if (hrefPage != null)
          {
            link = createHelper.createHyperlink(Hyperlink.LINK_DOCUMENT);
              if(pageLinks.containsKey(hrefPage))
              {
                ((List)pageLinks.get(hrefPage)).add(link);
              }
              else
              {
                List hrefList = new ArrayList();
                hrefList.add(link);
                pageLinks.put(hrefPage, hrefList);
              }
          }
          break;
        }
        case REMOTE_ANCHOR :
        {
          href = hyperlink.getHyperlinkReference();
          if (href != null && hyperlink.getHyperlinkAnchor() != null)
          {
            href = href + "#" + hyperlink.getHyperlinkAnchor();
            link = createHelper.createHyperlink(Hyperlink.LINK_FILE);
              link.setAddress(href);
             
          }
          break;
         
        }
        case REMOTE_PAGE :
        {
          href = hyperlink.getHyperlinkReference();
          if (href != null && hyperlink.getHyperlinkPage() != null)
          {
            href = href + "#JR_PAGE_ANCHOR_0_" + hyperlink.getHyperlinkPage().toString();
            link = createHelper.createHyperlink(Hyperlink.LINK_FILE);
              link.setAddress(href);
             
          }
          break;
         
        }
View Full Code Here

Examples of org.boris.expr.function.excel.HYPERLINK

                "c");
        fail("HLOOKUP not implemented");
    }

    public void testHYPERLINK() throws Exception {
        HYPERLINK h = new HYPERLINK();
        fail("HYPERLINK not implemented");
    }
View Full Code Here

Examples of org.cfeclipse.cfeclipsecall.plugin.Hyperlink

  public void init(IWorkbench workbench) {
  }

  protected Control createContents(Composite ancestor) {
    super.createContents(ancestor);
    fHyperlink = new Hyperlink(ancestor,SWT.BOLD);
    fHyperlink.setText("Get the cfeclipsecall application");
    fHyperlink.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    fHyperlink.setVisible(true);
    fHyperlink.setForeground(ancestor.getDisplay().getSystemColor(SWT.COLOR_BLUE));
    fHyperlink.addSelectionListener(new SelectionListener() {
View Full Code Here

Examples of org.docx4j.wml.P.Hyperlink

    wordMLPackage.getMainDocumentPart().addParagraphOfText("x");
    wordMLPackage.getMainDocumentPart().addParagraphOfText("x");
   
    // Now add an internal hyperlink to it
    Hyperlink h = MainDocumentPart.hyperlinkToBookmark(bookmarkName, "link to bookmark");
    wordMLPackage.getMainDocumentPart().addParagraphOfText("some text").getContent().add(h);
   
    System.out.println( XmlUtils.marshaltoString(p, true)  );
   
    SaveToZipFile saver = new SaveToZipFile(wordMLPackage);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Hyperlink

        }
        layout(true);
    }

    public void linkActivated(HyperlinkEvent e) {
        Hyperlink link = (Hyperlink) e.getSource();
        TaskStatus status = (TaskStatus)link.getData(DATA_STATUS_BEAN);
        if (status.getSeverity() == TaskStatus.WARNING || status.getSeverity() == TaskStatus.ERROR) {
            String title = status.getTaskLabel();
            if (status.getSeverity() == TaskStatus.WARNING) {
                title = "WARNING - " + title;
            } else {
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.