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.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 Constructor Description EditableCellStyleImpl(ModelRef<SBook> book, ModelRef<SCellStyle> style)
-
Method Summary
All 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.CellStyleImpl
getAlignment, 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.keikai.api.model.CellStyle
getAlignment, getBackColor, getBorderBottom, getBorderBottomColor, getBorderLeft, getBorderLeftColor, getBorderRight, getBorderRightColor, getBorderTop, getBorderTopColor, getDataFormat, getFillColor, getFillPattern, getFont, getVerticalAlignment, isHidden, isLocked, isWrapText
-
-
-
-
Constructor Detail
-
EditableCellStyleImpl
public EditableCellStyleImpl(ModelRef<SBook> book, ModelRef<SCellStyle> style)
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCellStyleImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classCellStyleImpl
-
setFont
public void setFont(Font font)
Description copied from interface:EditableCellStyleSets font- Specified by:
setFontin interfaceEditableCellStyle- Parameters:
font- the font
-
copyAttributeFrom
public void copyAttributeFrom(CellStyle src)
-
setFillColor
public void setFillColor(Color color)
Description copied from interface:EditableCellStyleSets forground-color of a fill.- Specified by:
setFillColorin interfaceEditableCellStyle
-
setFillPattern
public 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 interfaceEditableCellStyle
-
setAlignment
public 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 interfaceEditableCellStyle
-
setVerticalAlignment
public 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 interfaceEditableCellStyle
-
setWrapText
public void setWrapText(boolean wraptext)
Description copied from interface:EditableCellStyleSets wrap-text- Specified by:
setWrapTextin interfaceEditableCellStyle- Parameters:
wraptext- wrap-text
-
setBorderLeft
public 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 interfaceEditableCellStyle
-
setBorderTop
public 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 interfaceEditableCellStyle
-
setBorderRight
public 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 interfaceEditableCellStyle
-
setBorderBottom
public 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 interfaceEditableCellStyle
-
setBorderTopColor
public void setBorderTopColor(Color color)
Description copied from interface:EditableCellStyleSets top border color.
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
setBorderTopColorin interfaceEditableCellStyle
-
setBorderLeftColor
public void setBorderLeftColor(Color color)
Description copied from interface:EditableCellStyleSets left border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
setBorderLeftColorin interfaceEditableCellStyle
-
setBorderBottomColor
public void setBorderBottomColor(Color color)
Description copied from interface:EditableCellStyleSets bottom border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
setBorderBottomColorin interfaceEditableCellStyle
-
setBorderRightColor
public void setBorderRightColor(Color color)
Description copied from interface:EditableCellStyleSets right border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)to create aColor- Specified by:
setBorderRightColorin interfaceEditableCellStyle
-
setDataFormat
public void setDataFormat(String format)
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
public void setBackColor(Color color)
Description copied from interface:EditableCellStyleSets background-color of a fill- Specified by:
setBackColorin interfaceEditableCellStyle- Parameters:
color- background-color
-
-