Class EntityFormUtils

java.lang.Object
io.jmix.datatoolsui.screen.entityinspector.EntityFormUtils

public final class EntityFormUtils extends Object
  • Constructor Details

    • EntityFormUtils

      public EntityFormUtils()
  • Method Details

    • isRequired

      public static boolean isRequired(MetaProperty metaProperty)
    • isByteArray

      public static boolean isByteArray(MetaProperty metaProperty)
    • isUuid

      public static boolean isUuid(MetaProperty metaProperty)
    • isBoolean

      public static boolean isBoolean(MetaProperty metaProperty)
    • isEmbedded

      public static boolean isEmbedded(MetaProperty metaProperty)
      Checks if the property is embedded
      Parameters:
      metaProperty - meta property
      Returns:
      true if embedded, false otherwise
    • isMany

      public static boolean isMany(MetaProperty metaProperty)
      Checks if the property is many
      Parameters:
      metaProperty - meta property
      Returns:
      true if many, false otherwise
    • requireTextArea

      public static boolean requireTextArea(MetaProperty metaProperty, Object item, int maxTextFieldLength)
      Parameters:
      metaProperty - meta property
      item - entity containing property of the given meta property
      Returns:
      true if property require text area component; that is if it either too long or contains line separators
    • containsSeparator

      public static boolean containsSeparator(String s)