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
 
 public class EditableCellStyleImpl extends CellStyleImpl implements EditableCellStyle - Since:
- 3.0.0
- Author:
- dennis
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface io.keikai.api.model.CellStyleCellStyle.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 SummaryConstructors Constructor Description EditableCellStyleImpl(ModelRef<SBook> book, ModelRef<SCellStyle> style)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyAttributeFrom(CellStyle src)booleanequals(Object obj)inthashCode()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.voidsetFont(Font font)Sets 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-text- 
Methods inherited from class io.keikai.api.model.impl.CellStyleImplgetAlignment, getBackColor, getBackgroundColor, getBorderBottom, getBorderBottomColor, getBorderLeft, getBorderLeftColor, getBorderRight, getBorderRightColor, getBorderTop, getBorderTopColor, getDataFormat, getFillColor, getFillPattern, getFont, getNative, getRef, getVerticalAlignment, isHidden, isLocked, isWrapText, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface io.keikai.api.model.CellStylegetAlignment, getBackColor, getBorderBottom, getBorderBottomColor, getBorderLeft, getBorderLeftColor, getBorderRight, getBorderRightColor, getBorderTop, getBorderTopColor, getDataFormat, getFillColor, getFillPattern, getFont, getVerticalAlignment, isHidden, isLocked, isWrapText
 
- 
 
- 
- 
- 
Constructor Detail- 
EditableCellStyleImplpublic EditableCellStyleImpl(ModelRef<SBook> book, ModelRef<SCellStyle> style) 
 
- 
 - 
Method Detail- 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- CellStyleImpl
 
 - 
equalspublic boolean equals(Object obj) - Overrides:
- equalsin class- CellStyleImpl
 
 - 
setFontpublic void setFont(Font font) Description copied from interface:EditableCellStyleSets font- Specified by:
- setFontin interface- EditableCellStyle
- Parameters:
- font- the font
 
 - 
copyAttributeFrompublic void copyAttributeFrom(CellStyle src) 
 - 
setFillColorpublic void setFillColor(Color color) Description copied from interface:EditableCellStyleSets forground-color of a fill.- Specified by:
- setFillColorin interface- EditableCellStyle
 
 - 
setFillPatternpublic void setFillPattern(CellStyle.FillPattern pattern) 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 interface- EditableCellStyle
 
 - 
setAlignmentpublic void setAlignment(CellStyle.Alignment alignment) 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 interface- EditableCellStyle
 
 - 
setVerticalAlignmentpublic void setVerticalAlignment(CellStyle.VerticalAlignment alignment) 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 interface- EditableCellStyle
 
 - 
setWrapTextpublic void setWrapText(boolean wraptext) Description copied from interface:EditableCellStyleSets wrap-text- Specified by:
- setWrapTextin interface- EditableCellStyle
- Parameters:
- wraptext- wrap-text
 
 - 
setBorderLeftpublic void setBorderLeft(CellStyle.BorderType borderType) 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 interface- EditableCellStyle
 
 - 
setBorderToppublic void setBorderTop(CellStyle.BorderType borderType) 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 interface- EditableCellStyle
 
 - 
setBorderRightpublic void setBorderRight(CellStyle.BorderType borderType) 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 interface- EditableCellStyle
 
 - 
setBorderBottompublic void setBorderBottom(CellStyle.BorderType borderType) 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 interface- EditableCellStyle
 
 - 
setBorderTopColorpublic void setBorderTopColor(Color color) Description copied from interface:EditableCellStyleSets top border color.
 you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
- setBorderTopColorin interface- EditableCellStyle
 
 - 
setBorderLeftColorpublic void setBorderLeftColor(Color color) Description copied from interface:EditableCellStyleSets left border color
 you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
- setBorderLeftColorin interface- EditableCellStyle
 
 - 
setBorderBottomColorpublic void setBorderBottomColor(Color color) Description copied from interface:EditableCellStyleSets bottom border color
 you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
- setBorderBottomColorin interface- EditableCellStyle
 
 - 
setBorderRightColorpublic void setBorderRightColor(Color color) Description copied from interface:EditableCellStyleSets right border color
 you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
- setBorderRightColorin interface- EditableCellStyle
 
 - 
setDataFormatpublic void setDataFormat(String format) Description copied from interface:EditableCellStyleSets data format- Specified by:
- setDataFormatin interface- EditableCellStyle
 
 - 
setLockedpublic void setLocked(boolean locked) Description copied from interface:EditableCellStyleSets locked- Specified by:
- setLockedin interface- EditableCellStyle
 
 - 
setHiddenpublic void setHidden(boolean hidden) Description copied from interface:EditableCellStyleSets hidden- Specified by:
- setHiddenin interface- EditableCellStyle
 
 - 
setRotationpublic void setRotation(int rotation) 
 - 
setIndentionpublic void setIndention(int indention) 
 - 
setBackColorpublic void setBackColor(Color color) Description copied from interface:EditableCellStyleSets background-color of a fill- Specified by:
- setBackColorin interface- EditableCellStyle
- Parameters:
- color- background-color
 
 
- 
 
-