Enum Class StyleRole

java.lang.Object
java.lang.Enum<StyleRole>
com.nsdev.lettergenerator.theme.StyleRole
All Implemented Interfaces:
Serializable, Comparable<StyleRole>, Constable

public enum StyleRole extends Enum<StyleRole>
Semantic locations whose theme defaults precede explicit document and content styles.
  • Enum Constant Details

    • BODY

      public static final StyleRole BODY
      Shared fallback typography for ordinary content.
    • HEADING

      public static final StyleRole HEADING
      Heading typography, before explicit heading overrides.
    • TABLE

      public static final StyleRole TABLE
      Table-wide typography and spacing.
    • TABLE_HEADER

      public static final StyleRole TABLE_HEADER
      Repeating table-header cell typography.
    • TABLE_CELL

      public static final StyleRole TABLE_CELL
      Table-body cell typography.
    • SIGNATURE

      public static final StyleRole SIGNATURE
      Flowing or final-page visual signature content.
    • SENDER

      public static final StyleRole SENDER
      Sender identity and postal address.
    • RECIPIENT

      public static final StyleRole RECIPIENT
      Recipient identity and postal address.
    • DATE

      public static final StyleRole DATE
      Locale-formatted letter date.
    • SUBJECT

      public static final StyleRole SUBJECT
      Subject line.
    • REFERENCE

      public static final StyleRole REFERENCE
      Labeled reference details.
    • SALUTATION

      public static final StyleRole SALUTATION
      Opening greeting.
    • CLOSING

      public static final StyleRole CLOSING
      Closing greeting before the signature.
  • Method Details

    • values

      public static StyleRole[] 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 StyleRole 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