Enum Class MarbleDensity.Density

java.lang.Object
java.lang.Enum<MarbleDensity.Density>
org.zkoss.zul.theme.MarbleDensity.Density
All Implemented Interfaces:
Serializable, Comparable<MarbleDensity.Density>, Constable
Enclosing class:
MarbleDensity

public static enum MarbleDensity.Density extends Enum<MarbleDensity.Density>
The density a scope is rendered at. The token is what lands in the DOM as data-density.
  • Enum Constant Details

    • COMFORTABLE

      public static final MarbleDensity.Density COMFORTABLE
      Default comfortable density — matches the theme's :root token values.
    • COMPACT

      public static final MarbleDensity.Density COMPACT
      Data-dense mode — tighter control heights, row heights and cell padding.
  • Method Details

    • values

      public static MarbleDensity.Density[] 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 MarbleDensity.Density 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
    • token

      public String token()
      The data-density attribute value for this density.