Enum Class Align

java.lang.Object
java.lang.Enum<Align>
io.leandev.appfuse.workbook.Align
All Implemented Interfaces:
Serializable, Comparable<Align>, Constable

public enum Align extends Enum<Align>

儲存格水平對齊方式

框架無關的對齊列舉,於 CellStyle 套用時對映到底層 POI 的水平對齊型別, 不讓 POI 型別洩漏到公開 API。

Since:
4.0.0
  • Enum Constant Details

    • LEFT

      public static final Align LEFT
      靠左對齊
    • CENTER

      public static final Align CENTER
      置中對齊
    • JUSTIFY

      public static final Align JUSTIFY
      左右對齊(兩端對齊)
    • DISTRIBUTED

      public static final Align DISTRIBUTED
      分散對齊
  • Method Details

    • values

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