Enum Class Sizeable.Unit

java.lang.Object
java.lang.Enum<Sizeable.Unit>
com.vaadin.classic.v8.server.Sizeable.Unit
All Implemented Interfaces:
Serializable, Comparable<Sizeable.Unit>, Constable
Enclosing interface:
Sizeable

public static enum Sizeable.Unit extends Enum<Sizeable.Unit>
  • Enum Constant Details

    • PIXELS

      public static final Sizeable.Unit PIXELS
      Unit code representing pixels.
    • POINTS

      public static final Sizeable.Unit POINTS
      Unit code representing points (1/72nd of an inch).
    • PICAS

      public static final Sizeable.Unit PICAS
      Unit code representing picas (12 points).
    • EM

      public static final Sizeable.Unit EM
      Unit code representing the font-size of the relevant font.
    • REM

      public static final Sizeable.Unit REM
      Unit code representing the font-size of the root font.
    • EX

      public static final Sizeable.Unit EX
      Unit code representing the x-height of the relevant font.
    • MM

      public static final Sizeable.Unit MM
      Unit code representing millimeters.
    • CM

      public static final Sizeable.Unit CM
      Unit code representing centimeters.
    • INCH

      public static final Sizeable.Unit INCH
      Unit code representing inches.
    • PERCENTAGE

      public static final Sizeable.Unit PERCENTAGE
      Unit code representing in percentage of the containing element defined by terminal.
  • Method Details

    • values

      public static Sizeable.Unit[] 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 Sizeable.Unit 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
    • getSymbol

      public String getSymbol()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Sizeable.Unit>
    • getUnitFromSymbol

      public static Sizeable.Unit getUnitFromSymbol(String symbol)