Class InspectorFormBuilder
java.lang.Object
io.jmix.datatoolsui.screen.entityinspector.assistant.InspectorFormBuilder
@Component("datatl_EntityInspectorFormBuilder")
@Scope("prototype")
public class InspectorFormBuilder
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected Actions
protected EntityStates
static final int
protected Messages
protected MessageTools
protected MetadataTools
protected UiComponents
protected UiComponentsGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addField
(InstanceContainer container, Form form, MetaProperty metaProperty, boolean isReadonly) Adds field to the specified form.build()
static InspectorFormBuilder
from
(org.springframework.context.ApplicationContext applicationContext, InstanceContainer container) protected String
getPropertyCaption
(MetaClass metaClass, MetaProperty metaProperty) withCaption
(String caption) withCaptionWidth
(Integer captionWidth) withDisabledProperties
(String... properties) withFieldWidth
(String width) withMaxCaptionLength
(Integer captionLength) withOwnerComponent
(Component component)
-
Field Details
-
MAX_TEXTFIELD_STRING_LENGTH
public static final int MAX_TEXTFIELD_STRING_LENGTH- See Also:
-
uiComponents
-
metadataTools
-
entityStates
-
uiComponentsGenerator
-
actions
-
messages
-
messageTools
-
accessManager
-
-
Constructor Details
-
InspectorFormBuilder
-
-
Method Details
-
from
public static InspectorFormBuilder from(org.springframework.context.ApplicationContext applicationContext, InstanceContainer container) -
withCaption
-
withMaxCaptionLength
-
withCaptionWidth
-
withFieldWidth
-
withDisabledProperties
-
withOwnerComponent
-
build
-
addField
protected void addField(InstanceContainer container, Form form, MetaProperty metaProperty, boolean isReadonly) Adds field to the specified form. If the field should be custom, adds it to the specified customFields collection which can be used later to create fieldGenerators- Parameters:
metaProperty
- meta property of the item's property which field is creatingform
- field group to which created field will be added
-
getPropertyCaption
-