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 void
copyAttributeFrom(CellStyle src)
boolean
equals(Object obj)
int
hashCode()
void
setAlignment(CellStyle.Alignment alignment)
Sets horizontal alignment
Note: Spreadsheet(UI display) supports onlyCellStyle.Alignment.LEFT
,CellStyle.Alignment.CENTER
,CellStyle.Alignment.RIGHT
(CellStyle.Alignment.CENTER_SELECTION
will 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.void
setBackColor(Color color)
Sets background-color of a fillvoid
setBorderBottom(CellStyle.BorderType borderType)
Sets bottom border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE
,CellStyle.BorderType.THIN
,CellStyle.BorderType.DOTTED
andCellStyle.BorderType.HAIR
, (CellStyle.BorderType.DASH_DOT
will 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.void
setBorderBottomColor(Color color)
Sets bottom border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)
to create aColor
void
setBorderLeft(CellStyle.BorderType borderType)
Sets left border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE
,CellStyle.BorderType.THIN
,CellStyle.BorderType.DOTTED
andCellStyle.BorderType.HAIR
, (CellStyle.BorderType.DASH_DOT
will 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.void
setBorderLeftColor(Color color)
Sets left border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)
to create aColor
void
setBorderRight(CellStyle.BorderType borderType)
Sets right border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE
,CellStyle.BorderType.THIN
,CellStyle.BorderType.DOTTED
andCellStyle.BorderType.HAIR
, (CellStyle.BorderType.DASH_DOT
will 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.void
setBorderRightColor(Color color)
Sets right border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)
to create aColor
void
setBorderTop(CellStyle.BorderType borderType)
Sets top border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE
,CellStyle.BorderType.THIN
,CellStyle.BorderType.DOTTED
andCellStyle.BorderType.HAIR
, (CellStyle.BorderType.DASH_DOT
will 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.void
setBorderTopColor(Color color)
Sets top border color.void
setDataFormat(String format)
Sets data formatvoid
setFillColor(Color color)
Sets forground-color of a fill.void
setFillPattern(CellStyle.FillPattern pattern)
Sets the fill/background pattern
Note: Spreadsheet (UI display) supports onlyCellStyle.FillPattern.NONE
andCellStyle.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.void
setFont(Font font)
Sets fontvoid
setHidden(boolean hidden)
Sets hiddenvoid
setIndention(int indention)
void
setLocked(boolean locked)
Sets lockedvoid
setRotation(int rotation)
void
setVerticalAlignment(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
),void
setWrapText(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:
hashCode
in classCellStyleImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classCellStyleImpl
-
setFont
public void setFont(Font font)
Description copied from interface:EditableCellStyle
Sets font- Specified by:
setFont
in interfaceEditableCellStyle
- Parameters:
font
- the font
-
copyAttributeFrom
public void copyAttributeFrom(CellStyle src)
-
setFillColor
public void setFillColor(Color color)
Description copied from interface:EditableCellStyle
Sets forground-color of a fill.- Specified by:
setFillColor
in interfaceEditableCellStyle
-
setFillPattern
public void setFillPattern(CellStyle.FillPattern pattern)
Description copied from interface:EditableCellStyle
Sets the fill/background pattern
Note: Spreadsheet (UI display) supports onlyCellStyle.FillPattern.NONE
andCellStyle.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:
setFillPattern
in interfaceEditableCellStyle
-
setAlignment
public void setAlignment(CellStyle.Alignment alignment)
Description copied from interface:EditableCellStyle
Sets horizontal alignment
Note: Spreadsheet(UI display) supports onlyCellStyle.Alignment.LEFT
,CellStyle.Alignment.CENTER
,CellStyle.Alignment.RIGHT
(CellStyle.Alignment.CENTER_SELECTION
will 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:
setAlignment
in interfaceEditableCellStyle
-
setVerticalAlignment
public void setVerticalAlignment(CellStyle.VerticalAlignment alignment)
Description copied from interface:EditableCellStyle
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
),- Specified by:
setVerticalAlignment
in interfaceEditableCellStyle
-
setWrapText
public void setWrapText(boolean wraptext)
Description copied from interface:EditableCellStyle
Sets wrap-text- Specified by:
setWrapText
in interfaceEditableCellStyle
- Parameters:
wraptext
- wrap-text
-
setBorderLeft
public void setBorderLeft(CellStyle.BorderType borderType)
Description copied from interface:EditableCellStyle
Sets left border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE
,CellStyle.BorderType.THIN
,CellStyle.BorderType.DOTTED
andCellStyle.BorderType.HAIR
, (CellStyle.BorderType.DASH_DOT
will 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:
setBorderLeft
in interfaceEditableCellStyle
-
setBorderTop
public void setBorderTop(CellStyle.BorderType borderType)
Description copied from interface:EditableCellStyle
Sets top border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE
,CellStyle.BorderType.THIN
,CellStyle.BorderType.DOTTED
andCellStyle.BorderType.HAIR
, (CellStyle.BorderType.DASH_DOT
will 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:
setBorderTop
in interfaceEditableCellStyle
-
setBorderRight
public void setBorderRight(CellStyle.BorderType borderType)
Description copied from interface:EditableCellStyle
Sets right border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE
,CellStyle.BorderType.THIN
,CellStyle.BorderType.DOTTED
andCellStyle.BorderType.HAIR
, (CellStyle.BorderType.DASH_DOT
will 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:
setBorderRight
in interfaceEditableCellStyle
-
setBorderBottom
public void setBorderBottom(CellStyle.BorderType borderType)
Description copied from interface:EditableCellStyle
Sets bottom border
Note: Spreadsheet(UI display) only supportsCellStyle.BorderType.NONE
,CellStyle.BorderType.THIN
,CellStyle.BorderType.DOTTED
andCellStyle.BorderType.HAIR
, (CellStyle.BorderType.DASH_DOT
will 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:
setBorderBottom
in interfaceEditableCellStyle
-
setBorderTopColor
public void setBorderTopColor(Color color)
Description copied from interface:EditableCellStyle
Sets top border color.
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)
to create aColor
- Specified by:
setBorderTopColor
in interfaceEditableCellStyle
-
setBorderLeftColor
public void setBorderLeftColor(Color color)
Description copied from interface:EditableCellStyle
Sets left border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)
to create aColor
- Specified by:
setBorderLeftColor
in interfaceEditableCellStyle
-
setBorderBottomColor
public void setBorderBottomColor(Color color)
Description copied from interface:EditableCellStyle
Sets bottom border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)
to create aColor
- Specified by:
setBorderBottomColor
in interfaceEditableCellStyle
-
setBorderRightColor
public void setBorderRightColor(Color color)
Description copied from interface:EditableCellStyle
Sets right border color
you could useRange.CellStyleHelper.createColorFromHtmlColor(String)
to create aColor
- Specified by:
setBorderRightColor
in interfaceEditableCellStyle
-
setDataFormat
public void setDataFormat(String format)
Description copied from interface:EditableCellStyle
Sets data format- Specified by:
setDataFormat
in interfaceEditableCellStyle
-
setLocked
public void setLocked(boolean locked)
Description copied from interface:EditableCellStyle
Sets locked- Specified by:
setLocked
in interfaceEditableCellStyle
-
setHidden
public void setHidden(boolean hidden)
Description copied from interface:EditableCellStyle
Sets hidden- Specified by:
setHidden
in interfaceEditableCellStyle
-
setRotation
public void setRotation(int rotation)
-
setIndention
public void setIndention(int indention)
-
setBackColor
public void setBackColor(Color color)
Description copied from interface:EditableCellStyle
Sets background-color of a fill- Specified by:
setBackColor
in interfaceEditableCellStyle
- Parameters:
color
- background-color
-
-