Interface Spreadsheet.HyperlinkCellClickHandler

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultHyperlinkCellClickHandler
Enclosing class:
Spreadsheet

public static interface Spreadsheet.HyperlinkCellClickHandler extends Serializable
An interface for handling clicks on cells that contain a hyperlink.

Implement this interface and set it with Spreadsheet.setHyperlinkCellClickHandler(HyperlinkCellClickHandler) to customize the default behavior.

  • Method Summary

    Modifier and Type
    Method
    Description
    getHyperlinkFunctionTarget(org.apache.poi.ss.usermodel.Cell cell)
     
    void
    onHyperLinkCellClick(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.usermodel.Hyperlink hyperlink)
    Called when a hyperlink cell has been clicked.
  • Method Details

    • onHyperLinkCellClick

      void onHyperLinkCellClick(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.usermodel.Hyperlink hyperlink)
      Called when a hyperlink cell has been clicked. Assumes the implementation knows which spreadsheet is in use if needed, and how to navigate or perform some other action.
      Parameters:
      cell - The cell that contains the hyperlink
      hyperlink - The actual hyperlink
    • getHyperlinkFunctionTarget

      String getHyperlinkFunctionTarget(org.apache.poi.ss.usermodel.Cell cell)
      Returns:
      link target for use as a tooltip