Enum Class ExcelStyle

Object
Enum<ExcelStyle>
ExcelStyle
All Implemented Interfaces:
Serializable, Comparable<ExcelStyle>, Constable

@PublicApi public enum ExcelStyle extends Enum<ExcelStyle>
ExcelStyle represents the default cell styles used by Structure's Excel export.
  • Enum Constant Details

    • DEFAULT

      public static final ExcelStyle DEFAULT
      The default style. Used for data cells if no other style is specified.
    • HEADER_LEFT_ALIGNED

      public static final ExcelStyle HEADER_LEFT_ALIGNED
      Left-aligned header style. Used for header cells if no other style was specified.
    • HEADER_RIGHT_ALIGNED

      public static final ExcelStyle HEADER_RIGHT_ALIGNED
      Right-aligned header style. Use it for numeric, date, and duration column header cells.
    • DATE

      public static final ExcelStyle DATE
      Date style. Use it as the default cell style for date columns or for individual date cells.
    • DATETIME

      public static final ExcelStyle DATETIME
      Date and time style. Use it as the default cell style for date and time columns or for individual date and time cells.
    • DURATION

      public static final ExcelStyle DURATION
      Duration style. Use it as the default cell style for duration columns or for individual duration cells.
    • PERCENTAGE

      public static final ExcelStyle PERCENTAGE
      Percentage style. Use it as the default style for percentage columns or for individual percentage cells.
  • Method Details

    • values

      public static ExcelStyle[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ExcelStyle valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null