protected static class DefaultExcelFormatter.StyleDescription extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected static String |
DEFAULT_DESC |
| Constructor | Description |
|---|---|
StyleDescription() |
Constructor.
|
StyleDescription(Short format,
Short fgColor,
Short fillPattern,
Short bgColor,
org.apache.poi.ss.usermodel.Font font,
Short alignment,
Short topBorderColor,
Short topBorderThickness,
Short leftBorderColor,
Short leftBorderThickness,
Short rightBorderColor,
Short rightBorderThickness,
Short bottomBorderColor,
Short bottomBorderThickness,
boolean textWrap) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
applyStyle(org.apache.poi.ss.usermodel.CellStyle style) |
Applies the style to the cell.
|
boolean |
equals(Object obj) |
|
Short |
getAlignment() |
Returns the alignment.
|
Short |
getBgColor() |
Returns the background color.
|
Short |
getBottomBorderColor() |
Returns the color of the bottom border.
|
Short |
getBottomBorderThickness() |
Returns the thickness of the bottom border.
|
Short |
getFgColor() |
Returns the foreground color.
|
Short |
getFillPattern() |
Returns the fill pattern.
|
org.apache.poi.ss.usermodel.Font |
getFont() |
Returns the text font.
|
Short |
getFormat() |
Returns the format.
|
Short |
getLeftBorderColor() |
Returns the color of the left border.
|
Short |
getLeftBorderThickness() |
Returns the thickness of the left border.
|
Short |
getRightBorderColor() |
Sets the color of the right border.
|
Short |
getRightBorderThickness() |
Returns the thickness of the right border.
|
Short |
getTopBorderColor() |
Returns the color of the top border.
|
Short |
getTopBorderThickness() |
Returns the thickness of the top border.
|
int |
hashCode() |
|
boolean |
isDefault() |
|
boolean |
isTextWrap() |
Returns whether text is wrapped in cell.
|
void |
setAlignment(Short alignment) |
Sets the alignment.
|
void |
setBgColor(Short bgColor) |
Sets the background color.
|
void |
setBottomBorderColor(Short bottomBorderColor) |
Sets the color of the bottom border.
|
void |
setBottomBorderThickness(Short bottomBorderThickness) |
Sets the thickness of the bottom border.
|
void |
setFgColor(Short fgColor) |
Sets the foreground color.
|
void |
setFillPattern(Short fillPattern) |
Sets the fill pattern.
|
void |
setFont(org.apache.poi.ss.usermodel.Font font) |
Sets the text font.
|
void |
setFormat(Short format) |
Sets the format.
|
void |
setLeftBorderColor(Short leftBorderColor) |
Sets the color of the left border.
|
void |
setLeftBorderThickness(Short leftBorderThickness) |
Sets the thickness of the left border.
|
void |
setRightBorderColor(Short rightBorderColor) |
|
void |
setRightBorderThickness(Short rightBorderThickness) |
Sets the thickness of the right border.
|
void |
setTextWrap(boolean textWrap) |
Sets whether text is wrapped in cell.
|
void |
setTopBorderColor(Short topBorderColor) |
Sets the color of the top border.
|
void |
setTopBorderThickness(Short topBorderThickness) |
Sets the thickness of the top border.
|
String |
toString() |
protected static final String DEFAULT_DESC
public StyleDescription()
public StyleDescription(Short format, Short fgColor, Short fillPattern, Short bgColor, org.apache.poi.ss.usermodel.Font font, Short alignment, Short topBorderColor, Short topBorderThickness, Short leftBorderColor, Short leftBorderThickness, Short rightBorderColor, Short rightBorderThickness, Short bottomBorderColor, Short bottomBorderThickness, boolean textWrap)
format - - ID of formatfgColor - - ID of foreground colorfillPattern - - ID of fill patternbgColor - - ID of background colorfont - - ID of fontalignment - - ID of alignmenttopBorderColor - - ID of color for top bordertopBorderThickness - - ID of thickness for top borderleftBorderColor - - ID of color for left borderleftBorderThickness - - ID of thickness for left borderrightBorderColor - - ID of color for right borderrightBorderThickness - - ID of thickness for right borderbottomBorderColor - - ID of color for bottom borderbottomBorderThickness - - ID of thickness for bottom bordertextWrap - - ID of wrapping stylepublic Short getFormat()
public void setFormat(Short format)
format - the format to setpublic Short getFgColor()
public void setFgColor(Short fgColor)
fgColor - the fgColor to setpublic Short getFillPattern()
public void setFillPattern(Short fillPattern)
fillPattern - the fillPattern to setpublic Short getBgColor()
public void setBgColor(Short bgColor)
bgColor - the bgColor to setpublic org.apache.poi.ss.usermodel.Font getFont()
public void setFont(org.apache.poi.ss.usermodel.Font font)
font - the font to setpublic Short getAlignment()
public void setAlignment(Short alignment)
alignment - the alignment to setpublic Short getTopBorderColor()
public void setTopBorderColor(Short topBorderColor)
topBorderColor - the topBorderColor to setpublic Short getTopBorderThickness()
public void setTopBorderThickness(Short topBorderThickness)
topBorderThickness - the topBorderThickness to setpublic Short getLeftBorderColor()
public void setLeftBorderColor(Short leftBorderColor)
leftBorderColor - the leftBorderColor to setpublic Short getLeftBorderThickness()
public void setLeftBorderThickness(Short leftBorderThickness)
leftBorderThickness - the leftBorderThickness to setpublic Short getRightBorderColor()
public void setRightBorderColor(Short rightBorderColor)
rightBorderColor - the rightBorderColor to setpublic Short getRightBorderThickness()
public void setRightBorderThickness(Short rightBorderThickness)
rightBorderThickness - the rightBorderThickness to setpublic Short getBottomBorderColor()
public void setBottomBorderColor(Short bottomBorderColor)
bottomBorderColor - the bottomBorderColor to setpublic Short getBottomBorderThickness()
public void setBottomBorderThickness(Short bottomBorderThickness)
bottomBorderThickness - the bottomBorderThickness to setpublic boolean isTextWrap()
public void setTextWrap(boolean textWrap)
textWrap - the textWrap to setpublic void applyStyle(org.apache.poi.ss.usermodel.CellStyle style)
style - the style to be set from this descriptionpublic boolean isDefault()
Copyright © 2018. All rights reserved.