Package io.keikai.api.model.impl
Class CellStyleImpl
- java.lang.Object
-
- io.keikai.api.model.impl.CellStyleImpl
-
- All Implemented Interfaces:
CellStyle
,Serializable
- Direct Known Subclasses:
EditableCellStyleImpl
public class CellStyleImpl extends Object implements CellStyle, Serializable
- 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
-
-
Constructor Summary
Constructors Constructor Description CellStyleImpl(ModelRef<SBook> book, ModelRef<SCellStyle> style)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CellStyle.Alignment
getAlignment()
Gets the horizontal alignmentColorImpl
getBackColor()
ColorImpl
getBackgroundColor()
CellStyle.BorderType
getBorderBottom()
Color
getBorderBottomColor()
CellStyle.BorderType
getBorderLeft()
Color
getBorderLeftColor()
CellStyle.BorderType
getBorderRight()
Color
getBorderRightColor()
CellStyle.BorderType
getBorderTop()
Color
getBorderTopColor()
String
getDataFormat()
ColorImpl
getFillColor()
CellStyle.FillPattern
getFillPattern()
Gets the fill/background patternFontImpl
getFont()
SCellStyle
getNative()
ModelRef<SCellStyle>
getRef()
CellStyle.VerticalAlignment
getVerticalAlignment()
Gets vertical alignmentint
hashCode()
boolean
isHidden()
boolean
isLocked()
boolean
isWrapText()
String
toString()
-
-
-
Field Detail
-
_styleRef
protected ModelRef<SCellStyle> _styleRef
-
_font
protected FontImpl _font
-
-
Constructor Detail
-
CellStyleImpl
public CellStyleImpl(ModelRef<SBook> book, ModelRef<SCellStyle> style)
-
-
Method Detail
-
getNative
public SCellStyle getNative()
-
getRef
public ModelRef<SCellStyle> getRef()
-
getBackgroundColor
public ColorImpl getBackgroundColor()
-
getBackColor
public ColorImpl getBackColor()
- Specified by:
getBackColor
in interfaceCellStyle
- Returns:
- fill background color
-
getFillColor
public ColorImpl getFillColor()
- Specified by:
getFillColor
in interfaceCellStyle
- Returns:
- fill foreground color
-
getFillPattern
public CellStyle.FillPattern getFillPattern()
Description copied from interface:CellStyle
Gets the fill/background pattern- Specified by:
getFillPattern
in interfaceCellStyle
- Returns:
- the fill pattern
-
getAlignment
public CellStyle.Alignment getAlignment()
Description copied from interface:CellStyle
Gets the horizontal alignment- Specified by:
getAlignment
in interfaceCellStyle
- Returns:
- the horizontal alignment
-
getVerticalAlignment
public CellStyle.VerticalAlignment getVerticalAlignment()
Description copied from interface:CellStyle
Gets vertical alignment- Specified by:
getVerticalAlignment
in interfaceCellStyle
- Returns:
-
isWrapText
public boolean isWrapText()
- Specified by:
isWrapText
in interfaceCellStyle
- Returns:
- true if wrap-text
-
getBorderLeft
public CellStyle.BorderType getBorderLeft()
- Specified by:
getBorderLeft
in interfaceCellStyle
- Returns:
- left border
-
getBorderTop
public CellStyle.BorderType getBorderTop()
- Specified by:
getBorderTop
in interfaceCellStyle
- Returns:
- top border
-
getBorderRight
public CellStyle.BorderType getBorderRight()
- Specified by:
getBorderRight
in interfaceCellStyle
- Returns:
- right border
-
getBorderBottom
public CellStyle.BorderType getBorderBottom()
- Specified by:
getBorderBottom
in interfaceCellStyle
- Returns:
- bottom border
-
getBorderTopColor
public Color getBorderTopColor()
- Specified by:
getBorderTopColor
in interfaceCellStyle
- Returns:
- top border color
-
getBorderLeftColor
public Color getBorderLeftColor()
- Specified by:
getBorderLeftColor
in interfaceCellStyle
- Returns:
- left border color
-
getBorderBottomColor
public Color getBorderBottomColor()
- Specified by:
getBorderBottomColor
in interfaceCellStyle
- Returns:
- bottom border color
-
getBorderRightColor
public Color getBorderRightColor()
- Specified by:
getBorderRightColor
in interfaceCellStyle
- Returns:
- right border color
-
getDataFormat
public String getDataFormat()
- Specified by:
getDataFormat
in interfaceCellStyle
- Returns:
- data format
-
isLocked
public boolean isLocked()
-
-