| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static final Set | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final Set | |
| public static final String | |
| private static final Set | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final Set | |
| public static final String | |
| public static final String | |
| private static final Logger | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final Set | |
| public static final String | |
| public static final String | |
| private static final CellUtil. | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | copyCell(Cell
The cell to take value, formula and style from srcCell, Cell The cell to copy to destCell, CellCopyPolicy The policy for copying the information, see policy, CellCopyContext CellCopyPolicyThe context for copying, see context)CellCopyContextCopy cell value, formula and style, from srcCell per cell copy policy If srcCell is null, clears the cell value and cell style per cell copy policy. |
| public static Cell | Returns: A new Cellthe row to create the cell in row, int the column index to create the cell in column, String The value of the cell value, CellStyle If the style is not null, then set style)Creates a cell, gives it a value, and applies a style if provided |
| public static Cell | Returns: A new Cell.the row to create the cell in row, int the column index to create the cell in column, String The value of the cell value)Create a cell, and give it a value. |
| private static boolean | |
| private static BorderStyle | Returns: Border style if set, otherwiseBorderStyle#NONEmap of named properties (String -> Object) properties, String property name name)Utility method that returns the named BorderStyle value from the given map. |
| public static Cell | |
| private static Color | |
| private static FillPatternType | Returns: FillPatternType style if set, otherwiseFillPatternType#NO_FILLmap of named properties (String -> Object) properties, String property name name)Utility method that returns the named FillPatternType value from the given map. |
| private static Map | Returns: map of format properties (String -> Object)cell style style)Returns a map containing the format properties of the given cell style. |
| private static HorizontalAlignment | Returns: HorizontalAlignment style if set, otherwiseHorizontalAlignment#GENERALmap of named properties (String -> Object) properties, String property name name)Utility method that returns the named HorizontalAlignment value from the given map. |
| private static int | |
| public static Row | |
| private static short | |
| private static VerticalAlignment | Returns: VerticalAlignment style if set, otherwiseVerticalAlignment#BOTTOMmap of named properties (String -> Object) properties, String property name name)Utility method that returns the named VerticalAlignment value from the given map. |
| private static Short | |
| private static void | |
| private static void | |
| public static void | setAlignment(Cell
the cell to set the alignment for cell, HorizontalAlignment the horizontal alignment to use. align)Take a cell, and align it. |
| public static void | setCellStyleProperties(Cell
The cell to change the style of cell, Map<String, Object> The properties to be added to a cell style, as {propertyName: propertyValue}. properties)This method attempts to find an existing CellStyle that matches the |
| private static void | setCellStyleProperties(final Cell cell, final Map<String, Object> properties, final boolean disableNullColorCheck)
|
| public static void | setCellStyleProperty(Cell
The cell that is to be changed. cell, String The name of the property that is to be changed. propertyName, Object The value of the property that is to be changed. propertyValue)This method attempts to find an existing CellStyle that matches the |
| public static void | |
| private static void | |
| public static void | setVerticalAlignment(Cell
the cell to set the alignment for cell, VerticalAlignment the vertical alignment to use. align)Take a cell, and vertically align it. |
| private static boolean | |
| public static Cell | Returns: translated to unicodeThe cell to check for unicode values cell)Looks for text in the cell that should be unicode, like α and provides the unicode version of it. |
| private static CellUtil. |
| ALIGNMENT | back to summary |
|---|---|
| public static final String ALIGNMENT | |
| booleanValues | back to summary |
|---|---|
| private static final Set<String> booleanValues | |
| BORDER_BOTTOM | back to summary |
|---|---|
| public static final String BORDER_BOTTOM | |
| BORDER_LEFT | back to summary |
|---|---|
| public static final String BORDER_LEFT | |
| BORDER_RIGHT | back to summary |
|---|---|
| public static final String BORDER_RIGHT | |
| BORDER_TOP | back to summary |
|---|---|
| public static final String BORDER_TOP | |
| borderTypeValues | back to summary |
|---|---|
| private static final Set<String> borderTypeValues | |
| BOTTOM_BORDER_COLOR | back to summary |
|---|---|
| public static final String BOTTOM_BORDER_COLOR | |
| colorValues | back to summary |
|---|---|
| private static final Set<String> colorValues | |
| DATA_FORMAT | back to summary |
|---|---|
| public static final String DATA_FORMAT | |
| FILL_BACKGROUND_COLOR | back to summary |
|---|---|
| public static final String FILL_BACKGROUND_COLOR | |
| FILL_BACKGROUND_COLOR_COLOR | back to summary |
|---|---|
| public static final String FILL_BACKGROUND_COLOR_COLOR | |
| FILL_FOREGROUND_COLOR | back to summary |
|---|---|
| public static final String FILL_FOREGROUND_COLOR | |
| FILL_FOREGROUND_COLOR_COLOR | back to summary |
|---|---|
| public static final String FILL_FOREGROUND_COLOR_COLOR | |
| FILL_PATTERN | back to summary |
|---|---|
| public static final String FILL_PATTERN | |
| FONT | back to summary |
|---|---|
| public static final String FONT | |
| HIDDEN | back to summary |
|---|---|
| public static final String HIDDEN | |
| INDENTION | back to summary |
|---|---|
| public static final String INDENTION | |
| intValues | back to summary |
|---|---|
| private static final Set<String> intValues | |
| LEFT_BORDER_COLOR | back to summary |
|---|---|
| public static final String LEFT_BORDER_COLOR | |
| LOCKED | back to summary |
|---|---|
| public static final String LOCKED | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| QUOTE_PREFIXED | back to summary |
|---|---|
| public static final String QUOTE_PREFIXED | |
| RIGHT_BORDER_COLOR | back to summary |
|---|---|
| public static final String RIGHT_BORDER_COLOR | |
| ROTATION | back to summary |
|---|---|
| public static final String ROTATION | |
| shortValues | back to summary |
|---|---|
| private static final Set<String> shortValues | |
| SHRINK_TO_FIT | back to summary |
|---|---|
| public static final String SHRINK_TO_FIT | |
| TOP_BORDER_COLOR | back to summary |
|---|---|
| public static final String TOP_BORDER_COLOR | |
| unicodeMappings | back to summary |
|---|---|
| private static final CellUtil. | |
| VERTICAL_ALIGNMENT | back to summary |
|---|---|
| public static final String VERTICAL_ALIGNMENT | |
| WRAP_TEXT | back to summary |
|---|---|
| public static final String WRAP_TEXT | |
| CellUtil | back to summary |
|---|---|
| private CellUtil() | |
| copyCell | back to summary |
|---|---|
| public static void copyCell(Cell srcCell, Cell destCell, CellCopyPolicy policy, CellCopyContext context) Copy cell value, formula and style, from srcCell per cell copy policy
If srcCell is null, clears the cell value and cell style per cell copy policy.
Note that if you are copying from a source cell from a different type of then you may need to disable style copying
in the
| |
| createCell | back to summary |
|---|---|
| public static Cell createCell(Row row, int column, String value, CellStyle style) Creates a cell, gives it a value, and applies a style if provided | |
| createCell | back to summary |
|---|---|
| public static Cell createCell(Row row, int column, String value) Create a cell, and give it a value. | |
| getBoolean | back to summary |
|---|---|
| private static boolean getBoolean(Map<String, Object> properties, String name) Utility method that returns the named boolean value from the given map. | |
| getBorderStyle | back to summary |
|---|---|
| private static BorderStyle getBorderStyle(Map<String, Object> properties, String name) Utility method that returns the named BorderStyle value from the given map.
| |
| getCell | back to summary |
|---|---|
| public static Cell getCell(Row row, int columnIndex) Get a specific cell from a row. If the cell doesn't exist, then create it. | |
| getColor | back to summary |
|---|---|
| private static Color getColor(Map<String, Object> properties, String name) Utility method that returns the named Color value from the given map. | |
| getFillPattern | back to summary |
|---|---|
| private static FillPatternType getFillPattern(Map<String, Object> properties, String name) Utility method that returns the named FillPatternType value from the given map.
| |
| getFormatProperties | back to summary |
|---|---|
| private static Map Returns a map containing the format properties of the given cell style.
The returned map is not tied to
| |
| getHorizontalAlignment | back to summary |
|---|---|
| private static HorizontalAlignment getHorizontalAlignment(Map<String, Object> properties, String name) Utility method that returns the named HorizontalAlignment value from the given map.
| |
| getInt | back to summary |
|---|---|
| private static int getInt(Map<String, Object> properties, String name) Utility method that returns the named int value from the given map. | |
| getRow | back to summary |
|---|---|
| public static Row getRow(int rowIndex, Sheet sheet) Get a row from the spreadsheet, and create it if it doesn't exist. | |
| getShort | back to summary |
|---|---|
| private static short getShort(Map<String, Object> properties, String name) Utility method that returns the named short value from the given map. | |
| getVerticalAlignment | back to summary |
|---|---|
| private static VerticalAlignment getVerticalAlignment(Map<String, Object> properties, String name) Utility method that returns the named VerticalAlignment value from the given map.
| |
| nullableShort | back to summary |
|---|---|
| private static Short nullableShort(Map<String, Object> properties, String name) | |
| put | back to summary |
|---|---|
| private static void put(Map<String, Object> properties, String name, Object value) Utility method that puts the given value to the given map. | |
| putAll | back to summary |
|---|---|
| private static void putAll(final Map<String, Object> src, Map<String, Object> dest) Copies the entries in src to dest, using the preferential data type so that maps can be compared for equality | |
| setAlignment | back to summary |
|---|---|
| public static void setAlignment(Cell cell, HorizontalAlignment align) Take a cell, and align it. This is superior to cell.getCellStyle().setAlignment(align) because this method will not modify the CellStyle object that may be referenced by multiple cells. Instead, this method will search for existing CellStyles that match the desired CellStyle, creating a new CellStyle with the desired style if no match exists.
| |
| setCellStyleProperties | back to summary |
|---|---|
| public static void setCellStyleProperties(Cell cell, Map<String, Object> properties) This method attempts to find an existing CellStyle that matches the Modifies the cell style of This is necessary because Excel has an upper limit on the number of styles that it supports. This function is more efficient than multiple calls to
For performance reasons, if this is the only cell in a workbook that uses a cell style, this method does NOT remove the old style from the workbook. | |
| setCellStyleProperties | back to summary |
|---|---|
| private static void setCellStyleProperties(final Cell cell, final Map<String, Object> properties, final boolean disableNullColorCheck) | |
| setCellStyleProperty | back to summary |
|---|---|
| public static void setCellStyleProperty(Cell cell, String propertyName, Object propertyValue) This method attempts to find an existing CellStyle that matches the Modifies the cell style of If setting more than one cell style property on a cell, use
| |
| setFont | back to summary |
|---|---|
| public static void setFont(Cell cell, Font font) Take a cell, and apply a font to it
| |
| setFormatProperties | back to summary |
|---|---|
| private static void setFormatProperties(CellStyle style, Workbook workbook, Map<String, Object> properties) Sets the format properties of the given style based on the given map. | |
| setVerticalAlignment | back to summary |
|---|---|
| public static void setVerticalAlignment(Cell cell, VerticalAlignment align) Take a cell, and vertically align it. This is superior to cell.getCellStyle().setVerticalAlignment(align) because this method will not modify the CellStyle object that may be referenced by multiple cells. Instead, this method will search for existing CellStyles that match the desired CellStyle, creating a new CellStyle with the desired style if no match exists.
| |
| styleMapsMatch | back to summary |
|---|---|
| private static boolean styleMapsMatch(final Map<String, Object> newProps, final Map<String, Object> storedProps, final boolean disableNullColorCheck) | |
| translateUnicodeValues | back to summary |
|---|---|
| public static Cell translateUnicodeValues(Cell cell) Looks for text in the cell that should be unicode, like α and provides the unicode version of it. | |
| um | back to summary |
|---|---|
| private static CellUtil. | |
| Access | Constructor and Description |
|---|---|
| public |
| entityName | back to summary |
|---|---|
| public final String entityName | |
| resolvedValue | back to summary |
|---|---|
| public final String resolvedValue | |
| UnicodeMapping | back to summary |
|---|---|
| public UnicodeMapping(String pEntityName, String pResolvedValue) | |