Enum FormItemHintPlacement

java.lang.Object
java.lang.Enum<FormItemHintPlacement>
com.smartgwt.client.types.FormItemHintPlacement
All Implemented Interfaces:
ValueEnum, Serializable, Comparable<FormItemHintPlacement>, Constable

public enum FormItemHintPlacement extends Enum<FormItemHintPlacement> implements ValueEnum
Where a FormItem.hint is displayed, relative to the item itself.
  • Enum Constant Details

    • AFTER

      public static final FormItemHintPlacement AFTER
      horizontally beside the item

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "after".

    • BELOW

      public static final FormItemHintPlacement BELOW
      underneath the item, in a row of its own. Useful in a narrow form, where a hint shown "after" an item makes the form wider than the space available to it

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "below".

    • INLINE

      public static final FormItemHintPlacement INLINE
      within the item's own field - see TextItem.showHintInField. An item that cannot show an in-field hint uses "after" instead

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "inline".

    • ADAPTIVE

      public static final FormItemHintPlacement ADAPTIVE
      "inline" for items that can show an in-field hint, and "below" for the rest, so that no hint takes horizontal room

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "adaptive".

    • AUTO

      public static final FormItemHintPlacement AUTO
      "adaptive" on a handset, where there is no horizontal room beside an item, and "after" elsewhere

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "auto".

  • Method Details

    • values

      public static FormItemHintPlacement[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FormItemHintPlacement valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Specified by:
      getValue in interface ValueEnum