Package csv.impl

Class DefaultExcelFormatter.StyleDescription

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

protected static class DefaultExcelFormatter.StyleDescription extends Object
Describes a style for a cell.
  • Field Details

  • Constructor Details

    • StyleDescription

      public StyleDescription()
      Constructor.
    • StyleDescription

      public StyleDescription(Short format, Short fgColor, org.apache.poi.ss.usermodel.FillPatternType fillPattern, Short bgColor, org.apache.poi.ss.usermodel.Font font, org.apache.poi.ss.usermodel.HorizontalAlignment alignment, Short topBorderColor, org.apache.poi.ss.usermodel.BorderStyle topBorderThickness, Short leftBorderColor, org.apache.poi.ss.usermodel.BorderStyle leftBorderThickness, Short rightBorderColor, org.apache.poi.ss.usermodel.BorderStyle rightBorderThickness, 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 Short getFormat()
      Returns the format.
      Returns:
      the format
    • setFormat

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

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

      public void setFgColor(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 Short getBgColor()
      Returns the background color.
      Returns:
      the bgColor
    • setBgColor

      public void setBgColor(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 Short getTopBorderColor()
      Returns the color of the top border.
      Returns:
      the topBorderColor
    • setTopBorderColor

      public void setTopBorderColor(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 Short getLeftBorderColor()
      Returns the color of the left border.
      Returns:
      the leftBorderColor
    • setLeftBorderColor

      public void setLeftBorderColor(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 Short getRightBorderColor()
      Sets the color of the right border. Returns the color of the right border.
      Returns:
      the rightBorderColor
    • setRightBorderColor

      public void setRightBorderColor(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 Short getBottomBorderColor()
      Returns the color of the bottom border.
      Returns:
      the bottomBorderColor
    • setBottomBorderColor

      public void setBottomBorderColor(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(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

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

      public boolean isDefault()