aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/interfaces-jdk15/org/apache/poi/ss
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2008-11-14 11:56:41 +0000
committerYegor Kozlov <yegor@apache.org>2008-11-14 11:56:41 +0000
commitc67c1d5ca0545d59ca3b8515bd78e7f02328c118 (patch)
tree3dcff450c33781788555bd27ae62dee84b902670 /src/ooxml/interfaces-jdk15/org/apache/poi/ss
parentdfa42cbf38a6e7adf0e98cc6e76f6126c9fc4617 (diff)
downloadpoi-c67c1d5ca0545d59ca3b8515bd78e7f02328c118.tar.gz
poi-c67c1d5ca0545d59ca3b8515bd78e7f02328c118.zip
1. fixed XSSFSheet.groupRow and ungroupRow to operate on 0-based arguments, was 1-based2. repackaged common xssh-hssf examples, created a page in the site for them 3. converted broken non-ascii characters to unicode in TestMetaDataIPI and TestWriteWellKnown
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@713981 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/interfaces-jdk15/org/apache/poi/ss')
-rw-r--r--src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Cell.java18
-rw-r--r--src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java32
2 files changed, 38 insertions, 12 deletions
diff --git a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Cell.java b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Cell.java
index 4e132dafbd..a315493781 100644
--- a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Cell.java
+++ b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Cell.java
@@ -145,21 +145,33 @@ public interface Cell {
void setCellValue(Calendar value);
/**
- * set a string value for the cell. Please note that if you are using
- * full 16 bit unicode you should call <code>setEncoding()</code> first.
+ * Set a rich string value for the cell.
*
* @param value value to set the cell to. For formulas we'll set the formula
* string, for String cells we'll set its value. For other types we will
* change the cell to a string cell and set its value.
* If value is null then we will change the cell to a Blank cell.
*/
-
void setCellValue(RichTextString value);
+ /**
+ * Set a string value for the cell.
+ *
+ * @param value value to set the cell to. For formulas we'll set the formula
+ * string, for String cells we'll set its value. For other types we will
+ * change the cell to a string cell and set its value.
+ * If value is null then we will change the cell to a Blank cell.
+ */
void setCellValue(String value);
+ /**
+ * Set a formula value for the cell.
+ */
void setCellFormula(String formula);
+ /**
+ * Get the formula value of the cell.
+ */
String getCellFormula();
/**
diff --git a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java
index 12c6a6a0c1..bd500d56ae 100644
--- a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java
+++ b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Sheet.java
@@ -409,7 +409,6 @@ public interface Sheet extends Iterable<Row> {
* Additionally shifts merged regions that are completely defined in these
* rows (ie. merged 2 cells on a row to be shifted).
* <p>
- * TODO Might want to add bounds checking here
* @param startRow the row to start shifting
* @param endRow the row to end shifting
* @param n the number of rows to shift
@@ -542,14 +541,6 @@ public interface Sheet extends Iterable<Row> {
void removeColumnBreak(short column);
/**
- * Creates the toplevel drawing patriarch. This will have the effect of
- * removing any existing drawings on this sheet.
- *
- * @return The new patriarch.
- */
- //Patriarch createDrawingPatriarch();
-
- /**
* Expands or collapses a column group.
*
* @param columnNumber One of the columns in the group.
@@ -567,10 +558,28 @@ public interface Sheet extends Iterable<Row> {
void ungroupColumn(short fromColumn, short toColumn);
+ /**
+ * Tie a range of rows together so that they can be collapsed or expanded
+ *
+ * @param fromRow start row (0-based)
+ * @param toRow end row (0-based)
+ */
void groupRow(int fromRow, int toRow);
+ /**
+ * Ungroup a range of rows that were previously groupped
+ *
+ * @param fromRow start row (0-based)
+ * @param toRow end row (0-based)
+ */
void ungroupRow(int fromRow, int toRow);
+ /**
+ * Set view state of a groupped range of rows
+ *
+ * @param row start row of a groupped range of rows (0-based)
+ * @param collapse whether to expand/collapse the detail rows
+ */
void setRowGroupCollapsed(int row, boolean collapse);
/**
@@ -599,6 +608,11 @@ public interface Sheet extends Iterable<Row> {
*/
Comment getCellComment(int row, int column);
+ /**
+ * Creates the top-level drawing patriarch.
+ *
+ * @return The new drawing patriarch.
+ */
Drawing createDrawingPatriarch();
}