Enum Class UIHints.TextWidthHint

java.lang.Object
java.lang.Enum<UIHints.TextWidthHint>
com.streambase.sb.operator.parameter.UIHints.TextWidthHint
All Implemented Interfaces:
Serializable, Comparable<UIHints.TextWidthHint>, Constable
Enclosing class:
UIHints

public static enum UIHints.TextWidthHint extends Enum<UIHints.TextWidthHint>
Used to request a particular width for text-field like controls (including but not limited to text fields and combo/drop-downs).
Since:
7.5.1
  • Enum Constant Details

  • Method Details

    • values

      public static UIHints.TextWidthHint[] 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 UIHints.TextWidthHint 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
    • getWidth

      public abstract int getWidth()
      Returns the width for this hint. Note that the actual value is not API, and should not be assumed nor used by clients.
      Returns:
      the width this represents
    • getDefault

      public static final UIHints.TextWidthHint getDefault()
      Encodes the default text width hint when unspecified otherwise. The default is the value of MEDIUM.
      Returns:
      the default width