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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAlignment, getBackColor, getBackgroundColor, getBorderBottom, getBorderBottomColor, getBorderLeft, getBorderLeftColor, getBorderRight, getBorderRightColor, getBorderTop, getBorderTopColor, getDataFormat, getFillColor, getFillPattern, getFont, getVerticalAlignment, isHidden, isLocked, isWrapText
public EditableCellStyleImpl(ModelRef<SBook> book, ModelRef<SCellStyle> style)
public int hashCode()
hashCode
in class CellStyleImpl
public boolean equals(Object obj)
equals
in class CellStyleImpl
public void setFont(Font font)
EditableCellStyle
setFont
in interface EditableCellStyle
font
- the fontpublic void copyAttributeFrom(CellStyle src)
@Deprecated public void setBackgroundColor(Color color)
EditableCellStyle
setBackgroundColor
in interface EditableCellStyle
color
- background-colorpublic void setFillColor(Color color)
EditableCellStyle
setFillColor
in interface EditableCellStyle
public void setFillPattern(CellStyle.FillPattern pattern)
EditableCellStyle
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.setFillPattern
in interface EditableCellStyle
public void setAlignment(CellStyle.Alignment alignment)
EditableCellStyle
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.setAlignment
in interface EditableCellStyle
public void setVerticalAlignment(CellStyle.VerticalAlignment alignment)
EditableCellStyle
VerticalAlignment#TOP
, VerticalAlignment#CENTER
, VerticalAlignment#TOP
,
(Other alignment will be display as VerticalAlignment#BOTTOM
),setVerticalAlignment
in interface EditableCellStyle
public void setWrapText(boolean wraptext)
EditableCellStyle
setWrapText
in interface EditableCellStyle
wraptext
- wrap-textpublic void setBorderLeft(CellStyle.BorderType borderType)
EditableCellStyle
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.setBorderLeft
in interface EditableCellStyle
public void setBorderTop(CellStyle.BorderType borderType)
EditableCellStyle
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.setBorderTop
in interface EditableCellStyle
public void setBorderRight(CellStyle.BorderType borderType)
EditableCellStyle
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.setBorderRight
in interface EditableCellStyle
public void setBorderBottom(CellStyle.BorderType borderType)
EditableCellStyle
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.setBorderBottom
in interface EditableCellStyle
public void setBorderTopColor(Color color)
EditableCellStyle
Range.CellStyleHelper.createColorFromHtmlColor(String)
to create a Color
setBorderTopColor
in interface EditableCellStyle
public void setBorderLeftColor(Color color)
EditableCellStyle
Range.CellStyleHelper.createColorFromHtmlColor(String)
to create a Color
setBorderLeftColor
in interface EditableCellStyle
public void setBorderBottomColor(Color color)
EditableCellStyle
Range.CellStyleHelper.createColorFromHtmlColor(String)
to create a Color
setBorderBottomColor
in interface EditableCellStyle
public void setBorderRightColor(Color color)
EditableCellStyle
Range.CellStyleHelper.createColorFromHtmlColor(String)
to create a Color
setBorderRightColor
in interface EditableCellStyle
public void setDataFormat(String format)
EditableCellStyle
setDataFormat
in interface EditableCellStyle
public void setLocked(boolean locked)
EditableCellStyle
setLocked
in interface EditableCellStyle
public void setHidden(boolean hidden)
EditableCellStyle
setHidden
in interface EditableCellStyle
public void setRotation(int rotation)
public void setIndention(int indention)
public void setBackColor(Color color)
EditableCellStyle
setBackColor
in interface EditableCellStyle
color
- background-colorCopyright © 2020. All rights reserved.