diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index d79262b1d..bffc2a1b9 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -12,8 +12,11 @@ org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes= org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull +org.eclipse.jdt.core.compiler.annotation.nonnull.secondary= org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary= org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullable.secondary= org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate @@ -23,6 +26,7 @@ org.eclipse.jdt.core.compiler.compliance=1.6 org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.doc.comment.support=enabled org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.autoboxing=ignore @@ -46,12 +50,25 @@ org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.invalidJavadoc=error +org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public +org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag +org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore @@ -111,6 +128,7 @@ org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 @@ -124,8 +142,10 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_for_loop_header=0 org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references=0 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 @@ -135,6 +155,8 @@ org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_type_arguments=0 +org.eclipse.jdt.core.formatter.alignment_for_type_parameters=0 org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 org.eclipse.jdt.core.formatter.blank_lines_after_package=1 @@ -193,6 +215,7 @@ org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_enum_constant=insert org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert @@ -387,11 +410,24 @@ org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.parentheses_positions_in_annotation=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_catch_clause=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_if_while_statement=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_lambda_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_method_delcaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_method_invocation=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_switch_statement=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_try_clause=common_lines org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true org.eclipse.jdt.core.formatter.tabulation.char=space org.eclipse.jdt.core.formatter.tabulation.size=4 org.eclipse.jdt.core.formatter.use_on_off_tags=false org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_assignment_operator=false org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true +org.eclipse.jdt.core.javaFormatter=org.eclipse.jdt.core.defaultJavaFormatter diff --git a/src/examples/src/org/apache/poi/poifs/poibrowser/TreeReaderListener.java b/src/examples/src/org/apache/poi/poifs/poibrowser/TreeReaderListener.java index a1fdc726f..2795be98f 100644 --- a/src/examples/src/org/apache/poi/poifs/poibrowser/TreeReaderListener.java +++ b/src/examples/src/org/apache/poi/poifs/poibrowser/TreeReaderListener.java @@ -49,7 +49,7 @@ import org.apache.poi.poifs.filesystem.POIFSDocumentPath; * but it could be any other string.
* *The value of a tree node is a {@link DocumentDescriptor}. Unlike - * a {@link org.apache.poi.poifs.filesystem.POIFSDocument} which may be as heavy + * a {@link org.apache.poi.poifs.filesystem.OPOIFSDocument} which may be as heavy * as many megabytes, an instance of {@link DocumentDescriptor} is a * light-weight object and contains only some meta-information about a * document.
diff --git a/src/java/org/apache/poi/common/usermodel/Hyperlink.java b/src/java/org/apache/poi/common/usermodel/Hyperlink.java index abcdd112a..648227b15 100644 --- a/src/java/org/apache/poi/common/usermodel/Hyperlink.java +++ b/src/java/org/apache/poi/common/usermodel/Hyperlink.java @@ -22,38 +22,6 @@ import org.apache.poi.util.Removal; * Represents a hyperlink. */ public interface Hyperlink { - /** - * Link to an existing file or web page - * - * @deprecated POI 3.15 beta 3. Use {@link HyperlinkType#URL} instead. - */ - @Removal(version="3.17") - public static final int LINK_URL = 1; // HyperlinkType.URL.getCode() - - /** - * Link to a place in this document - * - * @deprecated POI 3.15 beta 3. Use {@link HyperlinkType#DOCUMENT} instead. - */ - @Removal(version="3.17") - public static final int LINK_DOCUMENT = 2; // HyperlinkType.DOCUMENT.getCode() - - /** - * Link to an E-mail address - * - * @deprecated POI 3.15 beta 3. Use {@link HyperlinkType#EMAIL} instead. - */ - @Removal(version="3.17") - public static final int LINK_EMAIL = 3; // HyperlinkType.EMAIL.getCode() - - /** - * Link to an file - * - * @deprecated POI 3.15 beta 3. Use {@link HyperlinkType#FILE} instead. - */ - @Removal(version="3.17") - public static final int LINK_FILE = 4; // HyperlinkType.FILE.getCode() - /** * Hyperlink address. Depending on the hyperlink type it can be URL, e-mail, path to a file, etc. diff --git a/src/java/org/apache/poi/hssf/model/HSSFFormulaParser.java b/src/java/org/apache/poi/hssf/model/HSSFFormulaParser.java index 774eb788f..e2ed22715 100644 --- a/src/java/org/apache/poi/hssf/model/HSSFFormulaParser.java +++ b/src/java/org/apache/poi/hssf/model/HSSFFormulaParser.java @@ -53,19 +53,6 @@ public final class HSSFFormulaParser { return parse(formula, workbook, FormulaType.CELL); } - /** - * @param formula The formula to parse, excluding the leading equals sign - * @param workbook The parent workbook - * @param formulaType a constant from {@link FormulaType} - * @return the parsed formula tokens - * @throws FormulaParseException if the formula has incorrect syntax or is otherwise invalid - * - * @deprecated POI 3.15 beta 3. Use {@link #parse(String, HSSFWorkbook, FormulaType)} instead. - */ - @Removal(version="3.17") - public static Ptg[] parse(String formula, HSSFWorkbook workbook, int formulaType) throws FormulaParseException { - return parse(formula, workbook, FormulaType.forInt(formulaType)); - } /** * @param formula The formula to parse, excluding the leading equals sign * @param workbook The parent workbook @@ -77,22 +64,6 @@ public final class HSSFFormulaParser { return parse(formula, workbook, formulaType, -1); } - /** - * @param formula the formula to parse - * @param workbook the parent workbook - * @param formulaType a constant from {@link FormulaType} - * @param sheetIndex the 0-based index of the sheet this formula belongs to. - * The sheet index is required to resolve sheet-level names.-1
means that
- * the scope of the name will be ignored and the parser will match named ranges only by name
- *
- * @return the parsed formula tokens
- * @throws FormulaParseException if the formula has incorrect syntax or is otherwise invalid
- * @deprecated POI 3.15 beta 3. Use {@link #parse(String, HSSFWorkbook, FormulaType, int)} instead.
- */
- @Removal(version="3.17")
- public static Ptg[] parse(String formula, HSSFWorkbook workbook, int formulaType, int sheetIndex) throws FormulaParseException {
- return parse(formula, workbook, FormulaType.forInt(formulaType), sheetIndex);
- }
/**
* @param formula The formula to parse
* @param workbook The parent workbook
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
index 2bbc18cd1..03f444751 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
@@ -33,7 +33,6 @@ import org.apache.poi.ss.usermodel.FillPatternType;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.VerticalAlignment;
-import org.apache.poi.util.Removal;
/**
* High level representation of the style of a cell in a sheet of a workbook.
@@ -168,7 +167,7 @@ public final class HSSFCellStyle implements CellStyle {
/**
* set the font for this style
- * @param font a font object created or retreived from the HSSFWorkbook object
+ * @param font a font object created or retrieved from the HSSFWorkbook object
* @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createFont()
* @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getFontAt(short)
*/
@@ -262,26 +261,6 @@ public final class HSSFCellStyle implements CellStyle {
return _format.get123Prefix();
}
- /**
- * set the type of horizontal alignment for the cell
- * @param align - the type of alignment
- * @see #ALIGN_GENERAL
- * @see #ALIGN_LEFT
- * @see #ALIGN_CENTER
- * @see #ALIGN_RIGHT
- * @see #ALIGN_FILL
- * @see #ALIGN_JUSTIFY
- * @see #ALIGN_CENTER_SELECTION
- * @deprecated POI 3.15 beta 3. Use {@link #setAlignment(HorizontalAlignment)} instead.
- */
- @Deprecated
- @Removal(version="3.17")
- @Override
- public void setAlignment(short align)
- {
- _format.setIndentNotParentAlignment(true);
- _format.setAlignment(align);
- }
/**
* set the type of horizontal alignment for the cell
* @param align - the type of alignment
@@ -296,13 +275,6 @@ public final class HSSFCellStyle implements CellStyle {
/**
* get the type of horizontal alignment for the cell
* @return align - the type of alignment
- * @see #ALIGN_GENERAL
- * @see #ALIGN_LEFT
- * @see #ALIGN_CENTER
- * @see #ALIGN_RIGHT
- * @see #ALIGN_FILL
- * @see #ALIGN_JUSTIFY
- * @see #ALIGN_CENTER_SELECTION
* @deprecated POI 3.15 beta 3. Use {@link #getAlignmentEnum()} instead.
*/
@Deprecated
@@ -342,23 +314,6 @@ public final class HSSFCellStyle implements CellStyle {
return _format.getWrapText();
}
- /**
- * set the type of vertical alignment for the cell
- * @param align the type of alignment
- * @see #VERTICAL_TOP
- * @see #VERTICAL_CENTER
- * @see #VERTICAL_BOTTOM
- * @see #VERTICAL_JUSTIFY
- * @see VerticalAlignment
- * @deprecated POI 3.15 beta 3. Use {@link #setVerticalAlignment(VerticalAlignment)} instead.
- */
- @Deprecated
- @Removal(version="3.17")
- @Override
- public void setVerticalAlignment(short align)
- {
- _format.setVerticalAlignment(align);
- }
/**
* set the type of vertical alignment for the cell
* @param align the type of alignment
@@ -372,10 +327,6 @@ public final class HSSFCellStyle implements CellStyle {
/**
* get the type of vertical alignment for the cell
* @return align the type of alignment
- * @see #VERTICAL_TOP
- * @see #VERTICAL_CENTER
- * @see #VERTICAL_BOTTOM
- * @see #VERTICAL_JUSTIFY
* @see VerticalAlignment
* @deprecated POI 3.15 beta 3. Use {@link #getVerticalAlignmentEnum()} instead.
*/
@@ -465,33 +416,6 @@ public final class HSSFCellStyle implements CellStyle {
{
return _format.getIndent();
}
-
- /**
- * set the type of border to use for the left border of the cell
- * @param border type
- * @see #BORDER_NONE
- * @see #BORDER_THIN
- * @see #BORDER_MEDIUM
- * @see #BORDER_DASHED
- * @see #BORDER_DOTTED
- * @see #BORDER_THICK
- * @see #BORDER_DOUBLE
- * @see #BORDER_HAIR
- * @see #BORDER_MEDIUM_DASHED
- * @see #BORDER_DASH_DOT
- * @see #BORDER_MEDIUM_DASH_DOT
- * @see #BORDER_DASH_DOT_DOT
- * @see #BORDER_MEDIUM_DASH_DOT_DOT
- * @see #BORDER_SLANTED_DASH_DOT
- * @deprecated 3.15 beta 2. Use {@link HSSFCellStyle#setBorderLeft(BorderStyle)} instead.
- */
- @Deprecated
- @Removal(version="3.17")
- @Override
- public void setBorderLeft(short border) {
- _format.setIndentNotParentBorder(true);
- _format.setBorderLeft(border);
- }
/**
* set the type of border to use for the left border of the cell
@@ -501,7 +425,8 @@ public final class HSSFCellStyle implements CellStyle {
@Override
public void setBorderLeft(BorderStyle border)
{
- setBorderLeft(border.getCode());
+ _format.setIndentNotParentBorder(true);
+ _format.setBorderLeft(border.getCode());
}
/**
@@ -525,34 +450,6 @@ public final class HSSFCellStyle implements CellStyle {
{
return BorderStyle.valueOf(_format.getBorderLeft());
}
-
- /**
- * set the type of border to use for the right border of the cell
- * @param border type
- * @see #BORDER_NONE
- * @see #BORDER_THIN
- * @see #BORDER_MEDIUM
- * @see #BORDER_DASHED
- * @see #BORDER_DOTTED
- * @see #BORDER_THICK
- * @see #BORDER_DOUBLE
- * @see #BORDER_HAIR
- * @see #BORDER_MEDIUM_DASHED
- * @see #BORDER_DASH_DOT
- * @see #BORDER_MEDIUM_DASH_DOT
- * @see #BORDER_DASH_DOT_DOT
- * @see #BORDER_MEDIUM_DASH_DOT_DOT
- * @see #BORDER_SLANTED_DASH_DOT
- * @deprecated 3.15 beta 2. Use {@link HSSFCellStyle#setBorderRight(BorderStyle)} instead.
- */
- @Deprecated
- @Removal(version="3.17")
- @Override
- public void setBorderRight(short border)
- {
- _format.setIndentNotParentBorder(true);
- _format.setBorderRight(border);
- }
/**
* set the type of border to use for the right border of the cell
@@ -562,7 +459,8 @@ public final class HSSFCellStyle implements CellStyle {
@Override
public void setBorderRight(BorderStyle border)
{
- setBorderRight(border.getCode());
+ _format.setIndentNotParentBorder(true);
+ _format.setBorderRight(border.getCode());
}
/**
@@ -586,34 +484,6 @@ public final class HSSFCellStyle implements CellStyle {
{
return BorderStyle.valueOf(_format.getBorderRight());
}
-
- /**
- * set the type of border to use for the top border of the cell
- * @param border type
- * @see #BORDER_NONE
- * @see #BORDER_THIN
- * @see #BORDER_MEDIUM
- * @see #BORDER_DASHED
- * @see #BORDER_DOTTED
- * @see #BORDER_THICK
- * @see #BORDER_DOUBLE
- * @see #BORDER_HAIR
- * @see #BORDER_MEDIUM_DASHED
- * @see #BORDER_DASH_DOT
- * @see #BORDER_MEDIUM_DASH_DOT
- * @see #BORDER_DASH_DOT_DOT
- * @see #BORDER_MEDIUM_DASH_DOT_DOT
- * @see #BORDER_SLANTED_DASH_DOT
- * @deprecated 3.15 beta 2. Use {@link HSSFCellStyle#setBorderTop(BorderStyle)} instead.
- */
- @Deprecated
- @Removal(version="3.17")
- @Override
- public void setBorderTop(short border)
- {
- _format.setIndentNotParentBorder(true);
- _format.setBorderTop(border);
- }
/**
* set the type of border to use for the top border of the cell
@@ -623,7 +493,8 @@ public final class HSSFCellStyle implements CellStyle {
@Override
public void setBorderTop(BorderStyle border)
{
- setBorderTop(border.getCode());
+ _format.setIndentNotParentBorder(true);
+ _format.setBorderTop(border.getCode());
}
/**
@@ -647,34 +518,6 @@ public final class HSSFCellStyle implements CellStyle {
{
return BorderStyle.valueOf(_format.getBorderTop());
}
-
- /**
- * set the type of border to use for the bottom border of the cell
- * @param border type
- * @see #BORDER_NONE
- * @see #BORDER_THIN
- * @see #BORDER_MEDIUM
- * @see #BORDER_DASHED
- * @see #BORDER_DOTTED
- * @see #BORDER_THICK
- * @see #BORDER_DOUBLE
- * @see #BORDER_HAIR
- * @see #BORDER_MEDIUM_DASHED
- * @see #BORDER_DASH_DOT
- * @see #BORDER_MEDIUM_DASH_DOT
- * @see #BORDER_DASH_DOT_DOT
- * @see #BORDER_MEDIUM_DASH_DOT_DOT
- * @see #BORDER_SLANTED_DASH_DOT
- * @deprecated 3.15 beta 2. Use {@link HSSFCellStyle#setBorderBottom(BorderStyle)} instead.
- */
- @Deprecated
- @Removal(version="3.17")
- @Override
- public void setBorderBottom(short border)
- {
- _format.setIndentNotParentBorder(true);
- _format.setBorderBottom(border);
- }
/**
* set the type of border to use for the bottom border of the cell
@@ -684,7 +527,8 @@ public final class HSSFCellStyle implements CellStyle {
@Override
public void setBorderBottom(BorderStyle border)
{
- setBorderBottom(border.getCode());
+ _format.setIndentNotParentBorder(true);
+ _format.setBorderBottom(border.getCode());
}
/**
@@ -792,39 +636,6 @@ public final class HSSFCellStyle implements CellStyle {
{
return _format.getBottomBorderPaletteIdx();
}
-
- /**
- * setting to one fills the cell with the foreground color... No idea about
- * other values
- *
- * @see #NO_FILL
- * @see #SOLID_FOREGROUND
- * @see #FINE_DOTS
- * @see #ALT_BARS
- * @see #SPARSE_DOTS
- * @see #THICK_HORZ_BANDS
- * @see #THICK_VERT_BANDS
- * @see #THICK_BACKWARD_DIAG
- * @see #THICK_FORWARD_DIAG
- * @see #BIG_SPOTS
- * @see #BRICKS
- * @see #THIN_HORZ_BANDS
- * @see #THIN_VERT_BANDS
- * @see #THIN_BACKWARD_DIAG
- * @see #THIN_FORWARD_DIAG
- * @see #SQUARES
- * @see #DIAMONDS
- *
- * @param fp fill pattern (set to 1 to fill w/foreground color)
- * @deprecated POI 3.15 beta 3. Use {@link #setFillPattern(FillPatternType)} instead.
- */
- @Deprecated
- @Removal(version="3.17")
- @Override
- public void setFillPattern(short fp)
- {
- setFillPattern(FillPatternType.forInt(fp));
- }
/**
* setting to one fills the cell with the foreground color... No idea about
diff --git a/src/java/org/apache/poi/hssf/util/HSSFCellUtil.java b/src/java/org/apache/poi/hssf/util/HSSFCellUtil.java
deleted file mode 100644
index ae46a5a2e..000000000
--- a/src/java/org/apache/poi/hssf/util/HSSFCellUtil.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.hssf.util;
-
-import org.apache.poi.hssf.usermodel.HSSFCell;
-import org.apache.poi.hssf.usermodel.HSSFCellStyle;
-import org.apache.poi.hssf.usermodel.HSSFFont;
-import org.apache.poi.hssf.usermodel.HSSFRow;
-import org.apache.poi.hssf.usermodel.HSSFSheet;
-import org.apache.poi.hssf.usermodel.HSSFWorkbook;
-import org.apache.poi.ss.usermodel.HorizontalAlignment;
-import org.apache.poi.ss.util.CellUtil;
-import org.apache.poi.util.Removal;
-
-/**
- * Various utility functions that make working with a cells and rows easier. The various
- * methods that deal with style's allow you to create your HSSFCellStyles as you need them.
- * When you apply a style change to a cell, the code will attempt to see if a style already
- * exists that meets your needs. If not, then it will create a new style. This is to prevent
- * creating too many styles. there is an upper limit in Excel on the number of styles that
- * can be supported.
- *
- * @deprecated 3.15 beta2. Use {@link org.apache.poi.ss.util.CellUtil} instead.
- */
-@Deprecated
-@Removal(version="3.17")
-public final class HSSFCellUtil {
-
- private HSSFCellUtil() {
- // no instances of this class
- }
-
- /**
- * Get a row from the spreadsheet, and create it if it doesn't exist.
- *
- * @param rowIndex The 0 based row number
- * @param sheet The sheet that the row is part of.
- * @return The row indicated by the rowCounter
- * @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#getRow} instead.
- */
- public static HSSFRow getRow(int rowIndex, HSSFSheet sheet) {
- return (HSSFRow) CellUtil.getRow(rowIndex, sheet);
- }
-
- /**
- * Get a specific cell from a row. If the cell doesn't exist,
- * then create it.
- *
- * @param row The row that the cell is part of
- * @param columnIndex The column index that the cell is in.
- * @return The cell indicated by the column.
- * @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#getCell} instead.
- */
- public static HSSFCell getCell(HSSFRow row, int columnIndex) {
- return (HSSFCell) CellUtil.getCell(row, columnIndex);
- }
-
- /**
- * Creates a cell, gives it a value, and applies a style if provided
- *
- * @param row the row to create the cell in
- * @param column the column index to create the cell in
- * @param value The value of the cell
- * @param style If the style is not null, then set
- * @return A new HSSFCell
- * @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#createCell} instead.
- */
- public static HSSFCell createCell(HSSFRow row, int column, String value, HSSFCellStyle style) {
- return (HSSFCell) CellUtil.createCell(row, column, value, style);
- }
-
- /**
- * Create a cell, and give it a value.
- *
- * @param row the row to create the cell in
- * @param column the column index to create the cell in
- * @param value The value of the cell
- * @return A new HSSFCell.
- * @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#createCell} instead.
- */
- public static HSSFCell createCell(HSSFRow row, int column, String value) {
- return createCell( row, column, value, null );
- }
-
- /**
- * Take a cell, and align it.
- *
- * @param cell the cell to set the alignment for
- * @param workbook The workbook that is being worked with.
- * @param align the column alignment to use.
- * @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#setAlignment} instead.
- *
- * @see HSSFCellStyle for alignment options
- */
- public static void setAlignment(HSSFCell cell, HSSFWorkbook workbook, short align) {
- setAlignment(cell, HorizontalAlignment.forInt(align));
- }
- /**
- * Take a cell, and align it.
- *
- * @param cell the cell to set the alignment for
- * @param align the column alignment to use.
- * @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#setAlignment} instead.
- *
- * @see HSSFCellStyle for alignment options
- */
- public static void setAlignment(HSSFCell cell, HorizontalAlignment align) {
- CellUtil.setAlignment(cell, align);
- }
-
- /**
- * Take a cell, and apply a font to it
- *
- * @param cell the cell to set the alignment for
- * @param workbook The workbook that is being worked with.
- * @param font The HSSFFont that you want to set.
- * @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#setFont} instead.
- */
- public static void setFont(HSSFCell cell, HSSFWorkbook workbook, HSSFFont font) {
- CellUtil.setFont(cell, font);
- }
-
- /**
- * This method attempt to find an already existing HSSFCellStyle that matches
- * what you want the style to be. If it does not find the style, then it
- * creates a new one. If it does create a new one, then it applies the
- * propertyName and propertyValue to the style. This is necessary because
- * Excel has an upper limit on the number of Styles that it supports.
- *
- * @param workbook The workbook that is being worked with.
- * @param propertyName The name of the property that is to be changed.
- * @param propertyValue The value of the property that is to be changed.
- * @param cell The cell that needs it's style changes
- * @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#setCellStyleProperty} instead.
- */
- public static void setCellStyleProperty(HSSFCell cell, HSSFWorkbook workbook,
- String propertyName, Object propertyValue) {
- CellUtil.setCellStyleProperty(cell, propertyName, propertyValue);
- }
-
- /**
- * Looks for text in the cell that should be unicode, like α and provides the
- * unicode version of it.
- *
- * @param cell The cell to check for unicode values
- * @return translated to unicode (the cell is modified in-place and returned)
- *
- * @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#translateUnicodeValues} instead.
- */
- public static HSSFCell translateUnicodeValues(HSSFCell cell){
- CellUtil.translateUnicodeValues(cell);
- return cell;
- }
-}
diff --git a/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java b/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java
index 826875a74..514c841fc 100644
--- a/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java
+++ b/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java
@@ -19,8 +19,8 @@ package org.apache.poi.hssf.util;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
-import org.apache.poi.ss.util.RegionUtil;
import org.apache.poi.ss.util.CellRangeAddress;
+import org.apache.poi.ss.util.RegionUtil;
/**
* Various utility functions that make working with a region of cells easier.
@@ -42,7 +42,7 @@ public final class HSSFRegionUtil {
*/
public static void setBorderLeft(int border, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setBorderLeft(border, region, sheet, workbook);
+ RegionUtil.setBorderLeft(border, region, sheet);
}
/**
@@ -55,7 +55,7 @@ public final class HSSFRegionUtil {
*/
public static void setLeftBorderColor(int color, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setLeftBorderColor(color, region, sheet, workbook);
+ RegionUtil.setLeftBorderColor(color, region, sheet);
}
/**
@@ -68,7 +68,7 @@ public final class HSSFRegionUtil {
*/
public static void setBorderRight(int border, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setBorderRight(border, region, sheet, workbook);
+ RegionUtil.setBorderRight(border, region, sheet);
}
/**
@@ -81,7 +81,7 @@ public final class HSSFRegionUtil {
*/
public static void setRightBorderColor(int color, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setRightBorderColor(color, region, sheet, workbook);
+ RegionUtil.setRightBorderColor(color, region, sheet);
}
/**
@@ -94,7 +94,7 @@ public final class HSSFRegionUtil {
*/
public static void setBorderBottom(int border, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setBorderBottom(border, region, sheet, workbook);
+ RegionUtil.setBorderBottom(border, region, sheet);
}
/**
@@ -107,7 +107,7 @@ public final class HSSFRegionUtil {
*/
public static void setBottomBorderColor(int color, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setBottomBorderColor(color, region, sheet, workbook);
+ RegionUtil.setBottomBorderColor(color, region, sheet);
}
/**
@@ -120,7 +120,7 @@ public final class HSSFRegionUtil {
*/
public static void setBorderTop(int border, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setBorderTop(border, region, sheet, workbook);
+ RegionUtil.setBorderTop(border, region, sheet);
}
/**
@@ -133,6 +133,6 @@ public final class HSSFRegionUtil {
*/
public static void setTopBorderColor(int color, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setTopBorderColor(color, region, sheet, workbook);
+ RegionUtil.setTopBorderColor(color, region, sheet);
}
}
diff --git a/src/java/org/apache/poi/ss/usermodel/CellStyle.java b/src/java/org/apache/poi/ss/usermodel/CellStyle.java
index 80ce6e8c9..565fe6a53 100644
--- a/src/java/org/apache/poi/ss/usermodel/CellStyle.java
+++ b/src/java/org/apache/poi/ss/usermodel/CellStyle.java
@@ -17,318 +17,8 @@
package org.apache.poi.ss.usermodel;
-import org.apache.poi.util.Removal;
-
public interface CellStyle {
- /**
- * general (normal) horizontal alignment
- * @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#GENERAL} instead.
- */
- @Removal(version="3.17")
- short ALIGN_GENERAL = 0x0; //HorizontalAlignment.GENERAL.getCode();
-
- /**
- * left-justified horizontal alignment
- * @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#LEFT} instead.
- */
- @Removal(version="3.17")
- short ALIGN_LEFT = 0x1; //HorizontalAlignment.LEFT.getCode();
-
- /**
- * center horizontal alignment
- * @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#CENTER} instead.
- */
- @Removal(version="3.17")
- short ALIGN_CENTER = 0x2; //HorizontalAlignment.CENTER.getCode();
-
- /**
- * right-justified horizontal alignment
- * @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#RIGHT} instead.
- */
- @Removal(version="3.17")
- short ALIGN_RIGHT = 0x3; //HorizontalAlignment.RIGHT.getCode();
-
- /**
- * fill? horizontal alignment
- * @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#FILL} instead.
- */
- @Removal(version="3.17")
- short ALIGN_FILL = 0x4; //HorizontalAlignment.FILL.getCode();
-
- /**
- * justified horizontal alignment
- * @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#JUSTIFY} instead.
- */
- @Removal(version="3.17")
- short ALIGN_JUSTIFY = 0x5; //HorizontalAlignment.JUSTIFY.getCode();
-
- /**
- * center-selection? horizontal alignment
- * @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#CENTER_SELECTION} instead.
- */
- @Removal(version="3.17")
- short ALIGN_CENTER_SELECTION = 0x6; //HorizontalAlignment.CENTER_SELECTION.getCode();
-
- /**
- * top-aligned vertical alignment
- * @deprecated POI 3.15 beta 3. Use {@link VerticalAlignment#TOP} instead.
- */
- @Removal(version="3.17")
- short VERTICAL_TOP = 0x0; //VerticalAlignment.TOP.getCode();
-
- /**
- * center-aligned vertical alignment
- * @deprecated POI 3.15 beta 3. Use {@link VerticalAlignment#CENTER} instead.
- */
- @Removal(version="3.17")
- short VERTICAL_CENTER = 0x1; //VerticalAlignment.CENTER.getCode();
-
- /**
- * bottom-aligned vertical alignment
- * @deprecated POI 3.15 beta 3. Use {@link VerticalAlignment#BOTTOM} instead.
- */
- @Removal(version="3.17")
- short VERTICAL_BOTTOM = 0x2; //VerticalAlignment.BOTTOM.getCode();
-
- /**
- * vertically justified vertical alignment
- * @deprecated POI 3.15 beta 3. Use {@link VerticalAlignment#JUSTIFY} instead.
- */
- @Removal(version="3.17")
- short VERTICAL_JUSTIFY = 0x3; //VerticalAlignment.JUSTIFY.getCode();
-
- /**
- * No border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#NONE} instead.
- */
- @Removal(version="3.17")
- short BORDER_NONE = 0x0; //BorderStyle.NONE.getCode();
-
- /**
- * Thin border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#THIN} instead.
- */
- @Removal(version="3.17")
- short BORDER_THIN = 0x1; //BorderStyle.THIN.getCode();
-
- /**
- * Medium border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#MEDIUM} instead.
- */
- @Removal(version="3.17")
- short BORDER_MEDIUM = 0x2; //BorderStyle.MEDIUM.getCode();
-
- /**
- * dash border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#DASHED} instead.
- */
- @Removal(version="3.17")
- short BORDER_DASHED = 0x3; //BorderStyle.DASHED.getCode();
-
- /**
- * dot border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#DOTTED} instead.
- */
- @Removal(version="3.17")
- short BORDER_DOTTED = 0x4; //BorderStyle.DOTTED.getCode();
-
- /**
- * Thick border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#THICK} instead.
- */
- @Removal(version="3.17")
- short BORDER_THICK = 0x5; //BorderStyle.THICK.getCode();
-
- /**
- * double-line border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#DOUBLE} instead.
- */
- @Removal(version="3.17")
- short BORDER_DOUBLE = 0x6; //BorderStyle.DOUBLE.getCode();
-
- /**
- * hair-line border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#HAIR} instead.
- */
- @Removal(version="3.17")
- short BORDER_HAIR = 0x7; //BorderStyle.HAIR.getCode();
-
- /**
- * Medium dashed border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#MEDIUM_DASHED} instead.
- */
- @Removal(version="3.17")
- short BORDER_MEDIUM_DASHED = 0x8; //BorderStyle.MEDIUM_DASHED.getCode();
-
- /**
- * dash-dot border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#DASH_DOT} instead.
- */
- @Removal(version="3.17")
- short BORDER_DASH_DOT = 0x9; //BorderStyle.DASH_DOT.getCode();
-
- /**
- * medium dash-dot border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#MEDIUM_DASH_DOT} instead.
- */
- @Removal(version="3.17")
- short BORDER_MEDIUM_DASH_DOT = 0xA; //BorderStyle.MEDIUM_DASH_DOT.getCode();
-
- /**
- * dash-dot-dot border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#DASH_DOT_DOT} instead.
- */
- @Removal(version="3.17")
- short BORDER_DASH_DOT_DOT = 0xB; //BorderStyle.DASH_DOT_DOT.getCode();
-
- /**
- * medium dash-dot-dot border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#MEDIUM_DASH_DOT_DOT} instead.
- */
- @Removal(version="3.17")
- short BORDER_MEDIUM_DASH_DOT_DOT = 0xC; //BorderStyle.MEDIUM_DASH_DOT_DOT.getCode();
-
- /**
- * slanted dash-dot border
- * @deprecated 3.15 beta 2. Use {@link BorderStyle#SLANTED_DASH_DOT} instead.
- */
- @Removal(version="3.17")
- short BORDER_SLANTED_DASH_DOT = 0xD; //BorderStyle.SLANTED_DASH_DOT.getCode();
-
- /**
- * Fill Pattern: No background
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#NO_FILL} instead.
- */
- @Removal(version="3.17")
- short NO_FILL = 0; //FillPatternType.NO_FILL.getCode();
-
- /**
- * Fill Pattern: Solidly filled
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#SOLID_FOREGROUND} instead.
- */
- @Removal(version="3.17")
- short SOLID_FOREGROUND = 1; //FillPatternType.SOLID_FOREGROUND.getCode();
-
- /**
- * Fill Pattern: Small fine dots
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#FINE_DOTS} instead.
- */
- @Removal(version="3.17")
- short FINE_DOTS = 2; //FillPatternType.FINE_DOTS.getCode();
-
- /**
- * Fill Pattern: Wide dots
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#ALT_BARS} instead.
- */
- @Removal(version="3.17")
- short ALT_BARS = 3; //FillPatternType.ALT_BARS.getCode();
-
- /**
- * Fill Pattern: Sparse dots
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#SPARSE_DOTS} instead.
- */
- @Removal(version="3.17")
- short SPARSE_DOTS = 4; //FillPatternType.SPARSE_DOTS.getCode();
-
- /**
- * Fill Pattern: Thick horizontal bands
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#THICK_HORZ_BANDS} instead.
- */
- @Removal(version="3.17")
- short THICK_HORZ_BANDS = 5; //FillPatternType.THICK_HORZ_BANDS.getCode();
-
- /**
- * Fill Pattern: Thick vertical bands
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#THICK_VERT_BANDS} instead.
- */
- @Removal(version="3.17")
- short THICK_VERT_BANDS = 6; //FillPatternType.THICK_VERT_BANDS.getCode();
-
- /**
- * Fill Pattern: Thick backward facing diagonals
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#THICK_BACKWARD_DIAG} instead.
- */
- @Removal(version="3.17")
- short THICK_BACKWARD_DIAG = 7; //FillPatternType.THICK_BACKWARD_DIAG.getCode();
-
- /**
- * Fill Pattern: Thick forward facing diagonals
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#THICK_FORWARD_DIAG} instead.
- */
- @Removal(version="3.17")
- short THICK_FORWARD_DIAG = 8; //FillPatternType.THICK_FORWARD_DIAG.getCode();
-
- /**
- * Fill Pattern: Large spots
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#BIG_SPOTS} instead.
- */
- @Removal(version="3.17")
- short BIG_SPOTS = 9; //FillPatternType.BIG_SPOTS.getCode();
-
- /**
- * Fill Pattern: Brick-like layout
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#BRICKS} instead.
- */
- @Removal(version="3.17")
- short BRICKS = 10; //FillPatternType.BRICKS.getCode();
-
- /**
- * Fill Pattern: Thin horizontal bands
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#THIN_HORZ_BANDS} instead.
- */
- @Removal(version="3.17")
- short THIN_HORZ_BANDS = 11; //FillPatternType.THIN_HORZ_BANDS.getCode();
-
- /**
- * Fill Pattern: Thin vertical bands
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#THIN_VERT_BANDS} instead.
- */
- @Removal(version="3.17")
- short THIN_VERT_BANDS = 12; //FillPatternType.THIN_VERT_BANDS.getCode();
-
- /**
- * Fill Pattern: Thin backward diagonal
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#THIN_BACKWARD_DIAG} instead.
- */
- @Removal(version="3.17")
- short THIN_BACKWARD_DIAG = 13; //FillPatternType.THIN_BACKWARD_DIAG.getCode();
-
- /**
- * Fill Pattern: Thin forward diagonal
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#THIN_FORWARD_DIAG} instead.
- */
- @Removal(version="3.17")
- short THIN_FORWARD_DIAG = 14; //FillPatternType.THIN_FORWARD_DIAG.getCode();
-
- /**
- * Fill Pattern: Squares
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#SQUARES} instead.
- */
- @Removal(version="3.17")
- short SQUARES = 15; //FillPatternType.SQUARES.getCode();
-
- /**
- * Fill Pattern: Diamonds
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#DIAMONDS} instead.
- */
- @Removal(version="3.17")
- short DIAMONDS = 16; //FillPatternType.DIAMONDS.getCode();
-
- /**
- * Fill Pattern: Less Dots
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#LESS_DOTS} instead.
- */
- @Removal(version="3.17")
- short LESS_DOTS = 17; //FillPatternType.LESS_DOTS.getCode();
-
- /**
- * Fill Pattern: Least Dots
- * @deprecated 3.15 beta 3. Use {@link FillPatternType#LEAST_DOTS} instead.
- */
- @Removal(version="3.17")
- short LEAST_DOTS = 18; //FillPatternType.LEAST_DOTS.getCode();
-
/**
* get the index within the Workbook (sequence within the collection of ExtnededFormat objects)
* @return unique index number of the underlying record this style represents (probably you don't care
@@ -414,19 +104,6 @@ public interface CellStyle {
*/
boolean getQuotePrefixed();
- /**
- * set the type of horizontal alignment for the cell
- * @param align - the type of alignment
- * @see #ALIGN_GENERAL
- * @see #ALIGN_LEFT
- * @see #ALIGN_CENTER
- * @see #ALIGN_RIGHT
- * @see #ALIGN_FILL
- * @see #ALIGN_JUSTIFY
- * @see #ALIGN_CENTER_SELECTION
- * @deprecated POI 3.15 beta 3. Use {@link #setAlignment(HorizontalAlignment)} instead.
- */
- void setAlignment(short align);
/**
* set the type of horizontal alignment for the cell
* @param align - the type of alignment
@@ -436,13 +113,6 @@ public interface CellStyle {
/**
* get the type of horizontal alignment for the cell
* @return align - the type of alignment
- * @see #ALIGN_GENERAL
- * @see #ALIGN_LEFT
- * @see #ALIGN_CENTER
- * @see #ALIGN_RIGHT
- * @see #ALIGN_FILL
- * @see #ALIGN_JUSTIFY
- * @see #ALIGN_CENTER_SELECTION
* @deprecated POI 3.15 beta 3. Use {@link #getAlignmentEnum()} instead.
*/
short getAlignment();
@@ -469,16 +139,6 @@ public interface CellStyle {
boolean getWrapText();
- /**
- * set the type of vertical alignment for the cell
- * @param align the type of alignment
- * @see #VERTICAL_TOP
- * @see #VERTICAL_CENTER
- * @see #VERTICAL_BOTTOM
- * @see #VERTICAL_JUSTIFY
- * @deprecated POI 3.15 beta 3. Use {@link #setVerticalAlignment(VerticalAlignment)} instead.
- */
- void setVerticalAlignment(short align);
/**
* set the type of vertical alignment for the cell
* @param align the type of alignment
@@ -488,10 +148,6 @@ public interface CellStyle {
/**
* get the type of vertical alignment for the cell
* @return align the type of alignment
- * @see #VERTICAL_TOP
- * @see #VERTICAL_CENTER
- * @see #VERTICAL_BOTTOM
- * @see #VERTICAL_JUSTIFY
* @deprecated POI 3.15 beta 3. Use {@link #getVerticalAlignmentEnum()} instead.
*/
short getVerticalAlignment();
@@ -538,28 +194,6 @@ public interface CellStyle {
short getIndention();
- /**
- * set the type of border to use for the left border of the cell
- * @param border type
- * @see #BORDER_NONE
- * @see #BORDER_THIN
- * @see #BORDER_MEDIUM
- * @see #BORDER_DASHED
- * @see #BORDER_DOTTED
- * @see #BORDER_THICK
- * @see #BORDER_DOUBLE
- * @see #BORDER_HAIR
- * @see #BORDER_MEDIUM_DASHED
- * @see #BORDER_DASH_DOT
- * @see #BORDER_MEDIUM_DASH_DOT
- * @see #BORDER_DASH_DOT_DOT
- * @see #BORDER_MEDIUM_DASH_DOT_DOT
- * @see #BORDER_SLANTED_DASH_DOT
- * @deprecated 3.15 beta 2. Use {@link #setBorderLeft(BorderStyle)} instead
- */
- @Removal(version="3.17")
- void setBorderLeft(short border);
-
/**
* set the type of border to use for the left border of the cell
* @param border type
@@ -581,28 +215,6 @@ public interface CellStyle {
*/
BorderStyle getBorderLeftEnum();
- /**
- * set the type of border to use for the right border of the cell
- * @param border type
- * @see #BORDER_NONE
- * @see #BORDER_THIN
- * @see #BORDER_MEDIUM
- * @see #BORDER_DASHED
- * @see #BORDER_DOTTED
- * @see #BORDER_THICK
- * @see #BORDER_DOUBLE
- * @see #BORDER_HAIR
- * @see #BORDER_MEDIUM_DASHED
- * @see #BORDER_DASH_DOT
- * @see #BORDER_MEDIUM_DASH_DOT
- * @see #BORDER_DASH_DOT_DOT
- * @see #BORDER_MEDIUM_DASH_DOT_DOT
- * @see #BORDER_SLANTED_DASH_DOT
- * @deprecated 3.15 beta 2. Use {@link #setBorderRight(BorderStyle)} instead
- */
- @Removal(version="3.17")
- void setBorderRight(short border);
-
/**
* set the type of border to use for the right border of the cell
* @param border type
@@ -624,28 +236,6 @@ public interface CellStyle {
*/
BorderStyle getBorderRightEnum();
- /**
- * set the type of border to use for the top border of the cell
- * @param border type
- * @see #BORDER_NONE
- * @see #BORDER_THIN
- * @see #BORDER_MEDIUM
- * @see #BORDER_DASHED
- * @see #BORDER_DOTTED
- * @see #BORDER_THICK
- * @see #BORDER_DOUBLE
- * @see #BORDER_HAIR
- * @see #BORDER_MEDIUM_DASHED
- * @see #BORDER_DASH_DOT
- * @see #BORDER_MEDIUM_DASH_DOT
- * @see #BORDER_DASH_DOT_DOT
- * @see #BORDER_MEDIUM_DASH_DOT_DOT
- * @see #BORDER_SLANTED_DASH_DOT
- * @deprecated 3.15 beta 2. Use {@link #setBorderTop(BorderStyle)} instead
- */
- @Removal(version="3.17")
- void setBorderTop(short border);
-
/**
* set the type of border to use for the top border of the cell
* @param border type
@@ -666,28 +256,6 @@ public interface CellStyle {
* @since POI 3.15
*/
BorderStyle getBorderTopEnum();
-
- /**
- * set the type of border to use for the bottom border of the cell
- * @param border type
- * @see #BORDER_NONE
- * @see #BORDER_THIN
- * @see #BORDER_MEDIUM
- * @see #BORDER_DASHED
- * @see #BORDER_DOTTED
- * @see #BORDER_THICK
- * @see #BORDER_DOUBLE
- * @see #BORDER_HAIR
- * @see #BORDER_MEDIUM_DASHED
- * @see #BORDER_DASH_DOT
- * @see #BORDER_MEDIUM_DASH_DOT
- * @see #BORDER_DASH_DOT_DOT
- * @see #BORDER_MEDIUM_DASH_DOT_DOT
- * @see #BORDER_SLANTED_DASH_DOT
- * @deprecated 3.15 beta 2. Use {@link #setBorderBottom(BorderStyle)} instead.
- */
- @Removal(version="3.17")
- void setBorderBottom(short border);
/**
* set the type of border to use for the bottom border of the cell
@@ -761,50 +329,6 @@ public interface CellStyle {
* setting to one fills the cell with the foreground color... No idea about
* other values
*
- * @see #NO_FILL
- * @see #SOLID_FOREGROUND
- * @see #FINE_DOTS
- * @see #ALT_BARS
- * @see #SPARSE_DOTS
- * @see #THICK_HORZ_BANDS
- * @see #THICK_VERT_BANDS
- * @see #THICK_BACKWARD_DIAG
- * @see #THICK_FORWARD_DIAG
- * @see #BIG_SPOTS
- * @see #BRICKS
- * @see #THIN_HORZ_BANDS
- * @see #THIN_VERT_BANDS
- * @see #THIN_BACKWARD_DIAG
- * @see #THIN_FORWARD_DIAG
- * @see #SQUARES
- * @see #DIAMONDS
- *
- * @param fp fill pattern (set to 1 to fill w/foreground color)
- * @deprecated POI 3.15 beta 3. Use {@link #setFillPattern(FillPatternType)} instead.
- */
- void setFillPattern(short fp);
- /**
- * setting to one fills the cell with the foreground color... No idea about
- * other values
- *
- * @see #NO_FILL
- * @see #SOLID_FOREGROUND
- * @see #FINE_DOTS
- * @see #ALT_BARS
- * @see #SPARSE_DOTS
- * @see #THICK_HORZ_BANDS
- * @see #THICK_VERT_BANDS
- * @see #THICK_BACKWARD_DIAG
- * @see #THICK_FORWARD_DIAG
- * @see #BIG_SPOTS
- * @see #BRICKS
- * @see #THIN_HORZ_BANDS
- * @see #THIN_VERT_BANDS
- * @see #THIN_BACKWARD_DIAG
- * @see #THIN_FORWARD_DIAG
- * @see #SQUARES
- * @see #DIAMONDS
- *
* @param fp fill pattern (set to {@link FillPatternType#SOLID_FOREGROUND} to fill w/foreground color)
* @since POI 3.15 beta 3
*/
diff --git a/src/java/org/apache/poi/ss/usermodel/Workbook.java b/src/java/org/apache/poi/ss/usermodel/Workbook.java
index dbac00bff..4e3d001f5 100644
--- a/src/java/org/apache/poi/ss/usermodel/Workbook.java
+++ b/src/java/org/apache/poi/ss/usermodel/Workbook.java
@@ -261,7 +261,7 @@ public interface Workbook extends Closeable, Iterable