Package csv.impl

Class DefaultExcelFormatter.StyleDescription

java.lang.Object
csv.impl.DefaultExcelFormatter.StyleDescription
Enclosing class:
DefaultExcelFormatter

protected static class DefaultExcelFormatter.StyleDescription
extends java.lang.Object
Describes a style for a cell.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected static java.lang.String DEFAULT_DESC  
  • Constructor Summary

    Constructors 
    Constructor Description
    StyleDescription()
    Constructor.
    StyleDescription​(java.lang.Short format, java.lang.Short fgColor, org.apache.poi.ss.usermodel.FillPatternType fillPattern, java.lang.Short bgColor, org.apache.poi.ss.usermodel.Font font, org.apache.poi.ss.usermodel.HorizontalAlignment alignment, java.lang.Short topBorderColor, org.apache.poi.ss.usermodel.BorderStyle topBorderThickness, java.lang.Short leftBorderColor, org.apache.poi.ss.usermodel.BorderStyle leftBorderThickness, java.lang.Short rightBorderColor, org.apache.poi.ss.usermodel.BorderStyle rightBorderThickness, java.lang.Short bottomBorderColor, org.apache.poi.ss.usermodel.BorderStyle bottomBorderThickness, boolean textWrap)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void applyStyle​(org.apache.poi.ss.usermodel.CellStyle style)
    Applies the style to the cell.
    boolean equals​(java.lang.Object obj)
    org.apache.poi.ss.usermodel.HorizontalAlignment getAlignment()
    Returns the alignment.
    java.lang.Short getBgColor()
    Returns the background color.
    java.lang.Short getBottomBorderColor()
    Returns the color of the bottom border.
    org.apache.poi.ss.usermodel.BorderStyle getBottomBorderThickness()
    Returns the thickness of the bottom border.
    java.lang.Short getFgColor()
    Returns the foreground color.
    org.apache.poi.ss.usermodel.FillPatternType getFillPattern()
    Returns the fill pattern.
    org.apache.poi.ss.usermodel.Font getFont()
    Returns the text font.
    java.lang.Short getFormat()
    Returns the format.
    java.lang.Short getLeftBorderColor()
    Returns the color of the left border.
    org.apache.poi.ss.usermodel.BorderStyle getLeftBorderThickness()
    Returns the thickness of the left border.
    java.lang.Short getRightBorderColor()
    Sets the color of the right border.
    org.apache.poi.ss.usermodel.BorderStyle getRightBorderThickness()
    Returns the thickness of the right border.
    java.lang.Short getTopBorderColor()
    Returns the color of the top border.
    org.apache.poi.ss.usermodel.BorderStyle getTopBorderThickness()
    Returns the thickness of the top border.
    int hashCode()
    boolean isDefault()  
    boolean isTextWrap()
    Returns whether text is wrapped in cell.
    void setAlignment​(org.apache.poi.ss.usermodel.HorizontalAlignment alignment)
    Sets the alignment.
    void setBgColor​(java.lang.Short bgColor)
    Sets the background color.
    void setBottomBorderColor​(java.lang.Short bottomBorderColor)
    Sets the color of the bottom border.
    void setBottomBorderThickness​(org.apache.poi.ss.usermodel.BorderStyle bottomBorderThickness)
    Sets the thickness of the bottom border.
    void setFgColor​(java.lang.Short fgColor)
    Sets the foreground color.
    void setFillPattern​(org.apache.poi.ss.usermodel.FillPatternType fillPattern)
    Sets the fill pattern.
    void setFont​(org.apache.poi.ss.usermodel.Font font)
    Sets the text font.
    void setFormat​(java.lang.Short format)
    Sets the format.
    void setLeftBorderColor​(java.lang.Short leftBorderColor)
    Sets the color of the left border.
    void setLeftBorderThickness​(org.apache.poi.ss.usermodel.BorderStyle leftBorderThickness)
    Sets the thickness of the left border.
    void setRightBorderColor​(java.lang.Short rightBorderColor)  
    void setRightBorderThickness​(org.apache.poi.ss.usermodel.BorderStyle rightBorderThickness)
    Sets the thickness of the right border.
    void setTextWrap​(boolean textWrap)
    Sets whether text is wrapped in cell.
    void setTopBorderColor​(java.lang.Short topBorderColor)
    Sets the color of the top border.
    void setTopBorderThickness​(org.apache.poi.ss.usermodel.BorderStyle topBorderThickness)
    Sets the thickness of the top border.
    java.lang.String toString()

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • StyleDescription

      public StyleDescription()
      Constructor.
    • StyleDescription

      public StyleDescription​(java.lang.Short format, java.lang.Short fgColor, org.apache.poi.ss.usermodel.FillPatternType fillPattern, java.lang.Short bgColor, org.apache.poi.ss.usermodel.Font font, org.apache.poi.ss.usermodel.HorizontalAlignment alignment, java.lang.Short topBorderColor, org.apache.poi.ss.usermodel.BorderStyle topBorderThickness, java.lang.Short leftBorderColor, org.apache.poi.ss.usermodel.BorderStyle leftBorderThickness, java.lang.Short rightBorderColor, org.apache.poi.ss.usermodel.BorderStyle rightBorderThickness, java.lang.Short bottomBorderColor, org.apache.poi.ss.usermodel.BorderStyle bottomBorderThickness, boolean textWrap)
      Constructor.
      Parameters:
      format - - ID of format
      fgColor - - ID of foreground color
      fillPattern - - ID of fill pattern
      bgColor - - ID of background color
      font - - ID of font
      alignment - - ID of alignment
      topBorderColor - - ID of color for top border
      topBorderThickness - - ID of thickness for top border
      leftBorderColor - - ID of color for left border
      leftBorderThickness - - ID of thickness for left border
      rightBorderColor - - ID of color for right border
      rightBorderThickness - - ID of thickness for right border
      bottomBorderColor - - ID of color for bottom border
      bottomBorderThickness - - ID of thickness for bottom border
      textWrap - - ID of wrapping style
  • Method Details

    • getFormat

      public java.lang.Short getFormat()
      Returns the format.
      Returns:
      the format
    • setFormat

      public void setFormat​(java.lang.Short format)
      Sets the format.
      Parameters:
      format - the format to set
    • getFgColor

      public java.lang.Short getFgColor()
      Returns the foreground color.
      Returns:
      the fgColor
    • setFgColor

      public void setFgColor​(java.lang.Short fgColor)
      Sets the foreground color.
      Parameters:
      fgColor - the fgColor to set
    • getFillPattern

      public org.apache.poi.ss.usermodel.FillPatternType getFillPattern()
      Returns the fill pattern.
      Returns:
      the fillPattern
    • setFillPattern

      public void setFillPattern​(org.apache.poi.ss.usermodel.FillPatternType fillPattern)
      Sets the fill pattern.
      Parameters:
      fillPattern - the fillPattern to set
    • getBgColor

      public java.lang.Short getBgColor()
      Returns the background color.
      Returns:
      the bgColor
    • setBgColor

      public void setBgColor​(java.lang.Short bgColor)
      Sets the background color.
      Parameters:
      bgColor - the bgColor to set
    • getFont

      public org.apache.poi.ss.usermodel.Font getFont()
      Returns the text font.
      Returns:
      the font
    • setFont

      public void setFont​(org.apache.poi.ss.usermodel.Font font)
      Sets the text font.
      Parameters:
      font - the font to set
    • getAlignment

      public org.apache.poi.ss.usermodel.HorizontalAlignment getAlignment()
      Returns the alignment.
      Returns:
      the alignment
    • setAlignment

      public void setAlignment​(org.apache.poi.ss.usermodel.HorizontalAlignment alignment)
      Sets the alignment.
      Parameters:
      alignment - the alignment to set
    • getTopBorderColor

      public java.lang.Short getTopBorderColor()
      Returns the color of the top border.
      Returns:
      the topBorderColor
    • setTopBorderColor

      public void setTopBorderColor​(java.lang.Short topBorderColor)
      Sets the color of the top border.
      Parameters:
      topBorderColor - the topBorderColor to set
    • getTopBorderThickness

      public org.apache.poi.ss.usermodel.BorderStyle getTopBorderThickness()
      Returns the thickness of the top border.
      Returns:
      the topBorderThickness
    • setTopBorderThickness

      public void setTopBorderThickness​(org.apache.poi.ss.usermodel.BorderStyle topBorderThickness)
      Sets the thickness of the top border.
      Parameters:
      topBorderThickness - the topBorderThickness to set
    • getLeftBorderColor

      public java.lang.Short getLeftBorderColor()
      Returns the color of the left border.
      Returns:
      the leftBorderColor
    • setLeftBorderColor

      public void setLeftBorderColor​(java.lang.Short leftBorderColor)
      Sets the color of the left border.
      Parameters:
      leftBorderColor - the leftBorderColor to set
    • getLeftBorderThickness

      public org.apache.poi.ss.usermodel.BorderStyle getLeftBorderThickness()
      Returns the thickness of the left border.
      Returns:
      the leftBorderThickness
    • setLeftBorderThickness

      public void setLeftBorderThickness​(org.apache.poi.ss.usermodel.BorderStyle leftBorderThickness)
      Sets the thickness of the left border.
      Parameters:
      leftBorderThickness - the leftBorderThickness to set
    • getRightBorderColor

      public java.lang.Short getRightBorderColor()
      Sets the color of the right border. Returns the color of the right border.
      Returns:
      the rightBorderColor
    • setRightBorderColor

      public void setRightBorderColor​(java.lang.Short rightBorderColor)
      Parameters:
      rightBorderColor - the rightBorderColor to set
    • getRightBorderThickness

      public org.apache.poi.ss.usermodel.BorderStyle getRightBorderThickness()
      Returns the thickness of the right border.
      Returns:
      the rightBorderThickness
    • setRightBorderThickness

      public void setRightBorderThickness​(org.apache.poi.ss.usermodel.BorderStyle rightBorderThickness)
      Sets the thickness of the right border.
      Parameters:
      rightBorderThickness - the rightBorderThickness to set
    • getBottomBorderColor

      public java.lang.Short getBottomBorderColor()
      Returns the color of the bottom border.
      Returns:
      the bottomBorderColor
    • setBottomBorderColor

      public void setBottomBorderColor​(java.lang.Short bottomBorderColor)
      Sets the color of the bottom border.
      Parameters:
      bottomBorderColor - the bottomBorderColor to set
    • getBottomBorderThickness

      public org.apache.poi.ss.usermodel.BorderStyle getBottomBorderThickness()
      Returns the thickness of the bottom border.
      Returns:
      the bottomBorderThickness
    • setBottomBorderThickness

      public void setBottomBorderThickness​(org.apache.poi.ss.usermodel.BorderStyle bottomBorderThickness)
      Sets the thickness of the bottom border.
      Parameters:
      bottomBorderThickness - the bottomBorderThickness to set
    • isTextWrap

      public boolean isTextWrap()
      Returns whether text is wrapped in cell.
      Returns:
      the textWrap
    • setTextWrap

      public void setTextWrap​(boolean textWrap)
      Sets whether text is wrapped in cell.
      Parameters:
      textWrap - the textWrap to set
    • applyStyle

      public void applyStyle​(org.apache.poi.ss.usermodel.CellStyle style)
      Applies the style to the cell.
      Parameters:
      style - the style to be set from this description
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • isDefault

      public boolean isDefault()