aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ss
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/ss')
-rw-r--r--src/java/org/apache/poi/ss/usermodel/Hyperlink.java9
-rw-r--r--src/java/org/apache/poi/ss/usermodel/Sheet.java16
2 files changed, 24 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/ss/usermodel/Hyperlink.java b/src/java/org/apache/poi/ss/usermodel/Hyperlink.java
index c067cc002c..35ceb7863e 100644
--- a/src/java/org/apache/poi/ss/usermodel/Hyperlink.java
+++ b/src/java/org/apache/poi/ss/usermodel/Hyperlink.java
@@ -19,7 +19,7 @@ package org.apache.poi.ss.usermodel;
/**
* Represents an Excel hyperlink.
*/
-public interface Hyperlink extends org.apache.poi.common.usermodel.Hyperlink {
+public interface Hyperlink extends org.apache.poi.common.usermodel.Hyperlink, Cloneable {
/**
* Return the row of the first cell that contains the hyperlink
*
@@ -75,4 +75,11 @@ public interface Hyperlink extends org.apache.poi.common.usermodel.Hyperlink {
* @param col the 0-based column of the last cell that contains the hyperlink
*/
public void setLastColumn(int col);
+
+ /**
+ * Create a clone of this hyperlink
+ *
+ * @return clone of this Hyperlink
+ */
+ public Hyperlink clone();
}
diff --git a/src/java/org/apache/poi/ss/usermodel/Sheet.java b/src/java/org/apache/poi/ss/usermodel/Sheet.java
index f0990511ff..034b94de4a 100644
--- a/src/java/org/apache/poi/ss/usermodel/Sheet.java
+++ b/src/java/org/apache/poi/ss/usermodel/Sheet.java
@@ -1067,4 +1067,20 @@ public interface Sheet extends Iterable<Row> {
* you take it out of them.
*/
int getColumnOutlineLevel(int columnIndex);
+
+ /**
+ * Get a Hyperlink in this sheet anchored at row, column
+ *
+ * @param row
+ * @param column
+ * @return hyperlink if there is a hyperlink anchored at row, column; otherwise returns null
+ */
+ public Hyperlink getHyperlink(int row, int column);
+
+ /**
+ * Get a list of Hyperlinks in this sheet
+ *
+ * @return Hyperlinks for the sheet
+ */
+ public List<? extends Hyperlink> getHyperlinkList();
}