Interface Spreadsheet.HyperlinkCellClickHandler
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultHyperlinkCellClickHandler
- Enclosing class:
Spreadsheet
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 TypeMethodDescriptiongetHyperlinkFunctionTarget(org.apache.poi.ss.usermodel.Cell cell) voidonHyperLinkCellClick(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 hyperlinkhyperlink- The actual hyperlink
-
getHyperlinkFunctionTarget
- Returns:
- link target for use as a tooltip
-