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 booleanequals(Object obj)CellStyle.AlignmentgetAlignment()Gets the horizontal alignmentColorImplgetBackColor()ColorImplgetBackgroundColor()CellStyle.BorderTypegetBorderBottom()ColorgetBorderBottomColor()CellStyle.BorderTypegetBorderLeft()ColorgetBorderLeftColor()CellStyle.BorderTypegetBorderRight()ColorgetBorderRightColor()CellStyle.BorderTypegetBorderTop()ColorgetBorderTopColor()StringgetDataFormat()ColorImplgetFillColor()CellStyle.FillPatterngetFillPattern()Gets the fill/background patternFontImplgetFont()SCellStylegetNative()ModelRef<SCellStyle>getRef()CellStyle.VerticalAlignmentgetVerticalAlignment()Gets vertical alignmentinthashCode()booleanisHidden()booleanisLocked()booleanisWrapText()StringtoString()
-
-
-
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:
getBackColorin interfaceCellStyle- Returns:
- fill background color
-
getFillColor
public ColorImpl getFillColor()
- Specified by:
getFillColorin interfaceCellStyle- Returns:
- fill foreground color
-
getFillPattern
public CellStyle.FillPattern getFillPattern()
Description copied from interface:CellStyleGets the fill/background pattern- Specified by:
getFillPatternin interfaceCellStyle- Returns:
- the fill pattern
-
getAlignment
public CellStyle.Alignment getAlignment()
Description copied from interface:CellStyleGets the horizontal alignment- Specified by:
getAlignmentin interfaceCellStyle- Returns:
- the horizontal alignment
-
getVerticalAlignment
public CellStyle.VerticalAlignment getVerticalAlignment()
Description copied from interface:CellStyleGets vertical alignment- Specified by:
getVerticalAlignmentin interfaceCellStyle- Returns:
-
isWrapText
public boolean isWrapText()
- Specified by:
isWrapTextin interfaceCellStyle- Returns:
- true if wrap-text
-
getBorderLeft
public CellStyle.BorderType getBorderLeft()
- Specified by:
getBorderLeftin interfaceCellStyle- Returns:
- left border
-
getBorderTop
public CellStyle.BorderType getBorderTop()
- Specified by:
getBorderTopin interfaceCellStyle- Returns:
- top border
-
getBorderRight
public CellStyle.BorderType getBorderRight()
- Specified by:
getBorderRightin interfaceCellStyle- Returns:
- right border
-
getBorderBottom
public CellStyle.BorderType getBorderBottom()
- Specified by:
getBorderBottomin interfaceCellStyle- Returns:
- bottom border
-
getBorderTopColor
public Color getBorderTopColor()
- Specified by:
getBorderTopColorin interfaceCellStyle- Returns:
- top border color
-
getBorderLeftColor
public Color getBorderLeftColor()
- Specified by:
getBorderLeftColorin interfaceCellStyle- Returns:
- left border color
-
getBorderBottomColor
public Color getBorderBottomColor()
- Specified by:
getBorderBottomColorin interfaceCellStyle- Returns:
- bottom border color
-
getBorderRightColor
public Color getBorderRightColor()
- Specified by:
getBorderRightColorin interfaceCellStyle- Returns:
- right border color
-
getDataFormat
public String getDataFormat()
- Specified by:
getDataFormatin interfaceCellStyle- Returns:
- data format
-
isLocked
public boolean isLocked()
-
-