Class EntityFormUtils
java.lang.Object
io.jmix.datatoolsui.screen.entityinspector.EntityFormUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
isBoolean
(MetaProperty metaProperty) static boolean
isByteArray
(MetaProperty metaProperty) static boolean
isEmbedded
(MetaProperty metaProperty) Checks if the property is embeddedstatic boolean
isMany
(MetaProperty metaProperty) Checks if the property is manystatic boolean
isRequired
(MetaProperty metaProperty) static boolean
isUuid
(MetaProperty metaProperty) static boolean
requireTextArea
(MetaProperty metaProperty, Object item, int maxTextFieldLength)
-
Constructor Details
-
EntityFormUtils
public EntityFormUtils()
-
-
Method Details
-
isRequired
-
isByteArray
-
isUuid
-
isBoolean
-
isEmbedded
Checks if the property is embedded- Parameters:
metaProperty
- meta property- Returns:
- true if embedded, false otherwise
-
isMany
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 propertyitem
- 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
-