Enum Class ScrollHint

java.lang.Object
java.lang.Enum<ScrollHint>
eu.webtoolkit.jwt.ScrollHint
All Implemented Interfaces:
Serializable, Comparable<ScrollHint>, Constable

public enum ScrollHint extends Enum<ScrollHint>
Enumeration that specifies a scrolling option.
  • Enum Constant Details

    • EnsureVisible

      public static final ScrollHint EnsureVisible
      Scrolls minimally to make it visible.
    • PositionAtTop

      public static final ScrollHint PositionAtTop
      Positions the item at the top of the viewport.
    • PositionAtBottom

      public static final ScrollHint PositionAtBottom
      Positions the item at the bottom of the viewport.
    • PositionAtCenter

      public static final ScrollHint PositionAtCenter
      Positions the item at the center of the viewport.
  • Method Details

    • values

      public static ScrollHint[] 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 ScrollHint 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
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.