Package io.keikai.api.model.impl
Class EditableCellStyleImpl
java.lang.Object
io.keikai.api.model.impl.CellStyleImpl
io.keikai.api.model.impl.EditableCellStyleImpl
- All Implemented Interfaces:
CellStyle,EditableCellStyle,Serializable
- Since:
- 3.0.0
- Author:
- dennis
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.keikai.api.model.CellStyle
CellStyle.Alignment, CellStyle.BorderType, CellStyle.Builder, CellStyle.FillPattern, CellStyle.VerticalAlignment -
Field Summary
Fields inherited from class io.keikai.api.model.impl.CellStyleImpl
_bookRef, _font, _styleRef -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleaninthashCode()voidsetAlignment(CellStyle.Alignment alignment) Sets horizontal alignment
Note: Spreadsheet(UI display) supports onlyCellStyle.Alignment.LEFT,CellStyle.Alignment.CENTER,CellStyle.Alignment.RIGHT(CellStyle.Alignment.CENTER_SELECTIONwill be display asCellStyle.Alignment.CENTER, Other alignment will be display asCellStyle.Alignment.LEFT), However you can still set another alignment, the data will still be kept when export.voidsetBackColor(Color color) Sets background-color of a fillvoidsetBorderBottom(CellStyle.BorderType borderType) Sets bottom border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE,CellStyle.BorderType.THIN,CellStyle.BorderType.DOTTEDandCellStyle.BorderType.HAIR, (CellStyle.BorderType.DASH_DOTwill be display asCellStyle.BorderType.DOTTED, Other alignment will be display asCellStyle.BorderType.THIN), However you can still set another alignment, the data will still be kept when export.voidsetBorderBottomColor(Color color) Sets bottom border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColorvoidsetBorderLeft(CellStyle.BorderType borderType) Sets left border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE,CellStyle.BorderType.THIN,CellStyle.BorderType.DOTTEDandCellStyle.BorderType.HAIR, (CellStyle.BorderType.DASH_DOTwill be display asCellStyle.BorderType.DOTTED, Other alignment will be display asCellStyle.BorderType.THIN), However you can still set another alignment, the data will still be kept when export.voidsetBorderLeftColor(Color color) Sets left border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColorvoidsetBorderRight(CellStyle.BorderType borderType) Sets right border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE,CellStyle.BorderType.THIN,CellStyle.BorderType.DOTTEDandCellStyle.BorderType.HAIR, (CellStyle.BorderType.DASH_DOTwill be display asCellStyle.BorderType.DOTTED, Other alignment will be display asCellStyle.BorderType.THIN), However you can still set another alignment, the data will still be kept when export.voidsetBorderRightColor(Color color) Sets right border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColorvoidsetBorderTop(CellStyle.BorderType borderType) Sets top border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE,CellStyle.BorderType.THIN,CellStyle.BorderType.DOTTEDandCellStyle.BorderType.HAIR, (CellStyle.BorderType.DASH_DOTwill be display asCellStyle.BorderType.DOTTED, Other alignment will be display asCellStyle.BorderType.THIN), However you can still set another alignment, the data will still be kept when export.voidsetBorderTopColor(Color color) Sets top border color.voidsetDataFormat(String format) Sets data formatvoidsetFillColor(Color color) Sets forground-color of a fill.voidsetFillPattern(CellStyle.FillPattern pattern) Sets the fill/background pattern
Note: Spreadsheet (UI display) supports onlyCellStyle.FillPattern.NONEandCellStyle.FillPattern.SOLID(Other pattern will be display as {@link FillPattern#SOLID), However you can still set another pattern, the data will still be kept when export.voidSets fontvoidsetHidden(boolean hidden) Sets hiddenvoidsetIndention(int indention) voidsetLocked(boolean locked) Sets lockedvoidsetRotation(int rotation) voidsetVerticalAlignment(CellStyle.VerticalAlignment alignment) Sets vertical alignment
Note: Spreadsheet(UI display) supports onlyCellStyle.VerticalAlignment.TOP,CellStyle.VerticalAlignment.CENTER,CellStyle.VerticalAlignment.TOP, (Other alignment will be display asCellStyle.VerticalAlignment.BOTTOM),voidsetWrapText(boolean wraptext) Sets wrap-textMethods inherited from class io.keikai.api.model.impl.CellStyleImpl
getAlignment, getBackColor, getBackgroundColor, getBorderBottom, getBorderBottomColor, getBorderLeft, getBorderLeftColor, getBorderRight, getBorderRightColor, getBorderTop, getBorderTopColor, getDataFormat, getFillColor, getFillPattern, getFont, getNative, getRef, getRotation, getVerticalAlignment, isHidden, isLocked, isWrapText, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.keikai.api.model.CellStyle
getAlignment, getBackColor, getBorderBottom, getBorderBottomColor, getBorderLeft, getBorderLeftColor, getBorderRight, getBorderRightColor, getBorderTop, getBorderTopColor, getDataFormat, getFillColor, getFillPattern, getFont, getRotation, getVerticalAlignment, isHidden, isLocked, isWrapText
-
Constructor Details
-
EditableCellStyleImpl
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classCellStyleImpl
-
equals
- Overrides:
equalsin classCellStyleImpl
-
setFont
Description copied from interface:EditableCellStyleSets font- Specified by:
setFontin interfaceEditableCellStyle- Parameters:
font- the font
-
copyAttributeFrom
-
setFillColor
Description copied from interface:EditableCellStyleSets forground-color of a fill.- Specified by:
setFillColorin interfaceEditableCellStyle
-
setFillPattern
Description copied from interface:EditableCellStyleSets the fill/background pattern
Note: Spreadsheet (UI display) supports onlyCellStyle.FillPattern.NONEandCellStyle.FillPattern.SOLID(Other pattern will be display as {@link FillPattern#SOLID), However you can still set another pattern, the data will still be kept when export.- Specified by:
setFillPatternin interfaceEditableCellStyle
-
setAlignment
Description copied from interface:EditableCellStyleSets horizontal alignment
Note: Spreadsheet(UI display) supports onlyCellStyle.Alignment.LEFT,CellStyle.Alignment.CENTER,CellStyle.Alignment.RIGHT(CellStyle.Alignment.CENTER_SELECTIONwill be display asCellStyle.Alignment.CENTER, Other alignment will be display asCellStyle.Alignment.LEFT), However you can still set another alignment, the data will still be kept when export.- Specified by:
setAlignmentin interfaceEditableCellStyle
-
setVerticalAlignment
Description copied from interface:EditableCellStyleSets vertical alignment
Note: Spreadsheet(UI display) supports onlyCellStyle.VerticalAlignment.TOP,CellStyle.VerticalAlignment.CENTER,CellStyle.VerticalAlignment.TOP, (Other alignment will be display asCellStyle.VerticalAlignment.BOTTOM),- Specified by:
setVerticalAlignmentin interfaceEditableCellStyle
-
setWrapText
public void setWrapText(boolean wraptext) Description copied from interface:EditableCellStyleSets wrap-text- Specified by:
setWrapTextin interfaceEditableCellStyle- Parameters:
wraptext- wrap-text
-
setBorderLeft
Description copied from interface:EditableCellStyleSets left border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE,CellStyle.BorderType.THIN,CellStyle.BorderType.DOTTEDandCellStyle.BorderType.HAIR, (CellStyle.BorderType.DASH_DOTwill be display asCellStyle.BorderType.DOTTED, Other alignment will be display asCellStyle.BorderType.THIN), However you can still set another alignment, the data will still be kept when export.- Specified by:
setBorderLeftin interfaceEditableCellStyle
-
setBorderTop
Description copied from interface:EditableCellStyleSets top border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE,CellStyle.BorderType.THIN,CellStyle.BorderType.DOTTEDandCellStyle.BorderType.HAIR, (CellStyle.BorderType.DASH_DOTwill be display asCellStyle.BorderType.DOTTED, Other alignment will be display asCellStyle.BorderType.THIN), However you can still set another alignment, the data will still be kept when export.- Specified by:
setBorderTopin interfaceEditableCellStyle
-
setBorderRight
Description copied from interface:EditableCellStyleSets right border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE,CellStyle.BorderType.THIN,CellStyle.BorderType.DOTTEDandCellStyle.BorderType.HAIR, (CellStyle.BorderType.DASH_DOTwill be display asCellStyle.BorderType.DOTTED, Other alignment will be display asCellStyle.BorderType.THIN), However you can still set another alignment, the data will still be kept when export.- Specified by:
setBorderRightin interfaceEditableCellStyle
-
setBorderBottom
Description copied from interface:EditableCellStyleSets bottom border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE,CellStyle.BorderType.THIN,CellStyle.BorderType.DOTTEDandCellStyle.BorderType.HAIR, (CellStyle.BorderType.DASH_DOTwill be display asCellStyle.BorderType.DOTTED, Other alignment will be display asCellStyle.BorderType.THIN), However you can still set another alignment, the data will still be kept when export.- Specified by:
setBorderBottomin interfaceEditableCellStyle
-
setBorderTopColor
Description copied from interface:EditableCellStyleSets top border color.
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
setBorderTopColorin interfaceEditableCellStyle
-
setBorderLeftColor
Description copied from interface:EditableCellStyleSets left border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
setBorderLeftColorin interfaceEditableCellStyle
-
setBorderBottomColor
Description copied from interface:EditableCellStyleSets bottom border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
setBorderBottomColorin interfaceEditableCellStyle
-
setBorderRightColor
Description copied from interface:EditableCellStyleSets right border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
setBorderRightColorin interfaceEditableCellStyle
-
setDataFormat
Description copied from interface:EditableCellStyleSets data format- Specified by:
setDataFormatin interfaceEditableCellStyle
-
setLocked
public void setLocked(boolean locked) Description copied from interface:EditableCellStyleSets locked- Specified by:
setLockedin interfaceEditableCellStyle
-
setHidden
public void setHidden(boolean hidden) Description copied from interface:EditableCellStyleSets hidden- Specified by:
setHiddenin interfaceEditableCellStyle
-
setRotation
public void setRotation(int rotation) -
setIndention
public void setIndention(int indention) -
setBackColor
Description copied from interface:EditableCellStyleSets background-color of a fill- Specified by:
setBackColorin interfaceEditableCellStyle- Parameters:
color- background-color
-