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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
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 Detail
-
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 hyperlinkhyperlink
- The actual hyperlink
-
getHyperlinkFunctionTarget
String getHyperlinkFunctionTarget(org.apache.poi.ss.usermodel.Cell cell)
- Returns:
- link target for use as a tooltip
-
-