public class EditableCellStyleImpl extends CellStyleImpl implements EditableCellStyle
CellStyle.Alignment, CellStyle.BorderType, CellStyle.FillPattern, CellStyle.VerticalAlignment_bookRef, _font, _styleRef| Constructor and Description |
|---|
EditableCellStyleImpl(ModelRef<SBook> book,
ModelRef<SCellStyle> style) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyAttributeFrom(CellStyle src) |
boolean |
equals(Object obj) |
int |
hashCode() |
void |
setAlignment(CellStyle.Alignment alignment)
Sets horizontal alignment
Note: Spreadsheet(UI display) supports only Alignment#LEFT, Alignment#CENTER, Alignment#RIGHT
(Alignment#CENTER_SELECTION will be display as Alignment#CENTER, Other alignment will be display as Alignment#LEFT),
However you can still set another alignment, the data will still be kept when export. |
void |
setBackColor(Color color)
Sets background-color of a fill
|
void |
setBackgroundColor(Color color)
Deprecated.
|
void |
setBorderBottom(CellStyle.BorderType borderType)
Sets bottom border
Note: Spreadsheet(UI display) only supports BorderType#NONE, BorderType#THIN, BorderType#DOTTED and BorderType#HAIR,
(BorderType#DASH_DOT will be display as Alignment#DOTTED, Other alignment will be display as Alignment#THIN),
However you can still set another alignment, the data will still be kept when export. |
void |
setBorderBottomColor(Color color)
Sets bottom border color
you could use Range.CellStyleHelper.createColorFromHtmlColor(String) to create a Color |
void |
setBorderLeft(CellStyle.BorderType borderType)
Sets left border
Note: Spreadsheet(UI display) only supports BorderType#NONE, BorderType#THIN, BorderType#DOTTED and BorderType#HAIR,
(BorderType#DASH_DOT will be display as Alignment#DOTTED, Other alignment will be display as Alignment#THIN),
However you can still set another alignment, the data will still be kept when export. |
void |
setBorderLeftColor(Color color)
Sets left border color
you could use Range.CellStyleHelper.createColorFromHtmlColor(String) to create a Color |
void |
setBorderRight(CellStyle.BorderType borderType)
Sets right border
Note: Spreadsheet(UI display) only supports BorderType#NONE, BorderType#THIN, BorderType#DOTTED and BorderType#HAIR,
(BorderType#DASH_DOT will be display as Alignment#DOTTED, Other alignment will be display as Alignment#THIN),
However you can still set another alignment, the data will still be kept when export. |
void |
setBorderRightColor(Color color)
Sets right border color
you could use Range.CellStyleHelper.createColorFromHtmlColor(String) to create a Color |
void |
setBorderTop(CellStyle.BorderType borderType)
Sets top border
Note: Spreadsheet(UI display) only supports BorderType#NONE, BorderType#THIN, BorderType#DOTTED and BorderType#HAIR,
(BorderType#DASH_DOT will be display as Alignment#DOTTED, Other alignment will be display as Alignment#THIN),
However you can still set another alignment, the data will still be kept when export. |
void |
setBorderTopColor(Color color)
Sets top border color.
|
void |
setDataFormat(String format)
Sets data format
|
void |
setFillColor(Color color)
Sets forground-color of a fill.
|
void |
setFillPattern(CellStyle.FillPattern pattern)
Sets the fill/background pattern
Note: Spreadsheet (UI display) supports only FillPattern#NONE and FillPattern#SOLID
(Other pattern will be display as {@link FillPattern#SOLID_FOREGROUND),
However you can still set another pattern, the data will still be kept when export. |
void |
setFont(Font font)
Sets font
|
void |
setHidden(boolean hidden)
Sets hidden
|
void |
setIndention(int indention) |
void |
setLocked(boolean locked)
Sets locked
|
void |
setRotation(int rotation) |
void |
setVerticalAlignment(CellStyle.VerticalAlignment alignment)
Sets vertical alignment
Note: Spreadsheet(UI display) supports only VerticalAlignment#TOP, VerticalAlignment#CENTER, VerticalAlignment#TOP,
(Other alignment will be display as VerticalAlignment#BOTTOM), |
void |
setWrapText(boolean wraptext)
Sets wrap-text
|
getAlignment, getBackColor, getBackgroundColor, getBorderBottom, getBorderBottomColor, getBorderLeft, getBorderLeftColor, getBorderRight, getBorderRightColor, getBorderTop, getBorderTopColor, getDataFormat, getFillColor, getFillPattern, getFont, getNative, getRef, getVerticalAlignment, isHidden, isLocked, isWrapText, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAlignment, getBackColor, getBackgroundColor, getBorderBottom, getBorderBottomColor, getBorderLeft, getBorderLeftColor, getBorderRight, getBorderRightColor, getBorderTop, getBorderTopColor, getDataFormat, getFillColor, getFillPattern, getFont, getVerticalAlignment, isHidden, isLocked, isWrapTextpublic EditableCellStyleImpl(ModelRef<SBook> book, ModelRef<SCellStyle> style)
public int hashCode()
hashCode in class CellStyleImplpublic boolean equals(Object obj)
equals in class CellStyleImplpublic void setFont(Font font)
EditableCellStylesetFont in interface EditableCellStylefont - the fontpublic void copyAttributeFrom(CellStyle src)
@Deprecated public void setBackgroundColor(Color color)
EditableCellStylesetBackgroundColor in interface EditableCellStylecolor - background-colorpublic void setFillColor(Color color)
EditableCellStylesetFillColor in interface EditableCellStylepublic void setFillPattern(CellStyle.FillPattern pattern)
EditableCellStyleFillPattern#NONE and FillPattern#SOLID
(Other pattern will be display as {@link FillPattern#SOLID_FOREGROUND),
However you can still set another pattern, the data will still be kept when export.setFillPattern in interface EditableCellStylepublic void setAlignment(CellStyle.Alignment alignment)
EditableCellStyleAlignment#LEFT, Alignment#CENTER, Alignment#RIGHT
(Alignment#CENTER_SELECTION will be display as Alignment#CENTER, Other alignment will be display as Alignment#LEFT),
However you can still set another alignment, the data will still be kept when export.setAlignment in interface EditableCellStylepublic void setVerticalAlignment(CellStyle.VerticalAlignment alignment)
EditableCellStyleVerticalAlignment#TOP, VerticalAlignment#CENTER, VerticalAlignment#TOP,
(Other alignment will be display as VerticalAlignment#BOTTOM),setVerticalAlignment in interface EditableCellStylepublic void setWrapText(boolean wraptext)
EditableCellStylesetWrapText in interface EditableCellStylewraptext - wrap-textpublic void setBorderLeft(CellStyle.BorderType borderType)
EditableCellStyleBorderType#NONE, BorderType#THIN, BorderType#DOTTED and BorderType#HAIR,
(BorderType#DASH_DOT will be display as Alignment#DOTTED, Other alignment will be display as Alignment#THIN),
However you can still set another alignment, the data will still be kept when export.setBorderLeft in interface EditableCellStylepublic void setBorderTop(CellStyle.BorderType borderType)
EditableCellStyleBorderType#NONE, BorderType#THIN, BorderType#DOTTED and BorderType#HAIR,
(BorderType#DASH_DOT will be display as Alignment#DOTTED, Other alignment will be display as Alignment#THIN),
However you can still set another alignment, the data will still be kept when export.setBorderTop in interface EditableCellStylepublic void setBorderRight(CellStyle.BorderType borderType)
EditableCellStyleBorderType#NONE, BorderType#THIN, BorderType#DOTTED and BorderType#HAIR,
(BorderType#DASH_DOT will be display as Alignment#DOTTED, Other alignment will be display as Alignment#THIN),
However you can still set another alignment, the data will still be kept when export.setBorderRight in interface EditableCellStylepublic void setBorderBottom(CellStyle.BorderType borderType)
EditableCellStyleBorderType#NONE, BorderType#THIN, BorderType#DOTTED and BorderType#HAIR,
(BorderType#DASH_DOT will be display as Alignment#DOTTED, Other alignment will be display as Alignment#THIN),
However you can still set another alignment, the data will still be kept when export.setBorderBottom in interface EditableCellStylepublic void setBorderTopColor(Color color)
EditableCellStyleRange.CellStyleHelper.createColorFromHtmlColor(String) to create a ColorsetBorderTopColor in interface EditableCellStylepublic void setBorderLeftColor(Color color)
EditableCellStyleRange.CellStyleHelper.createColorFromHtmlColor(String) to create a ColorsetBorderLeftColor in interface EditableCellStylepublic void setBorderBottomColor(Color color)
EditableCellStyleRange.CellStyleHelper.createColorFromHtmlColor(String) to create a ColorsetBorderBottomColor in interface EditableCellStylepublic void setBorderRightColor(Color color)
EditableCellStyleRange.CellStyleHelper.createColorFromHtmlColor(String) to create a ColorsetBorderRightColor in interface EditableCellStylepublic void setDataFormat(String format)
EditableCellStylesetDataFormat in interface EditableCellStylepublic void setLocked(boolean locked)
EditableCellStylesetLocked in interface EditableCellStylepublic void setHidden(boolean hidden)
EditableCellStylesetHidden in interface EditableCellStylepublic void setRotation(int rotation)
public void setIndention(int indention)
public void setBackColor(Color color)
EditableCellStylesetBackColor in interface EditableCellStylecolor - background-colorCopyright © 2020. All rights reserved.