Class MessageTemplateParameterGenerationStrategy
java.lang.Object
io.jmix.flowui.component.factory.AbstractComponentGenerationStrategy
io.jmix.messagetemplatesflowui.component.factory.MessageTemplateParameterGenerationStrategy
- All Implemented Interfaces:
ComponentGenerationStrategy,org.springframework.core.Ordered
@Component("msgtmp_MessageTemplateParameterGenerationStrategy")
public class MessageTemplateParameterGenerationStrategy
extends AbstractComponentGenerationStrategy
implements org.springframework.core.Ordered
Strategy for generating visual components for a
MessageTemplateParameter.
The generation process uses information from the MessageTemplateParameterGenerationContext.-
Field Summary
FieldsFields inherited from class io.jmix.flowui.component.factory.AbstractComponentGenerationStrategy
actions, datatypeRegistry, entityFieldCreationSupport, messages, metadata, metadataTools, uiComponentsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionMessageTemplateParameterGenerationStrategy(UiComponents uiComponents, Metadata metadata, MetadataTools metadataTools, Actions actions, DatatypeRegistry datatypeRegistry, Messages messages, EntityFieldCreationSupport entityFieldCreationSupport, MessageParameterResolver messageParameterResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.Componentcom.vaadin.flow.component.ComponentCreates a component according to the givenComponentGenerationContext.protected com.vaadin.flow.component.Componentprotected com.vaadin.flow.component.ComponentcreateDateField(MessageTemplateParameter parameter) protected com.vaadin.flow.component.ComponentcreateDateTimeField(MessageTemplateParameter parameter) protected com.vaadin.flow.component.Componentprotected com.vaadin.flow.component.Componentprotected com.vaadin.flow.component.Componentprotected com.vaadin.flow.component.ComponentcreateTextField(MessageTemplateParameter parameter) protected com.vaadin.flow.component.ComponentcreateTimeField(MessageTemplateParameter parameter) intgetOrder()Methods inherited from class io.jmix.flowui.component.factory.AbstractComponentGenerationStrategy
createBooleanField, createCollectionField, createDatatypeField, createDatePicker, createDateTimePicker, createFileStorageUploadField, createFileUploadField, createNumberField, createStringField, createTimePicker, isComposition, resolveMetaPropertyPath, setValueSource
-
Field Details
-
messageParameterResolver
-
-
Constructor Details
-
MessageTemplateParameterGenerationStrategy
public MessageTemplateParameterGenerationStrategy(UiComponents uiComponents, Metadata metadata, MetadataTools metadataTools, Actions actions, DatatypeRegistry datatypeRegistry, Messages messages, EntityFieldCreationSupport entityFieldCreationSupport, MessageParameterResolver messageParameterResolver)
-
-
Method Details
-
createComponent
@Nullable public com.vaadin.flow.component.Component createComponent(ComponentGenerationContext context) Description copied from interface:ComponentGenerationStrategyCreates a component according to the givenComponentGenerationContext. If the strategy is not applicable to the given context it should return null value.- Specified by:
createComponentin interfaceComponentGenerationStrategy- Parameters:
context- the context instance- Returns:
- created component
-
createComponentInternal
@Nullable protected com.vaadin.flow.component.Component createComponentInternal(ComponentGenerationContext context) - Overrides:
createComponentInternalin classAbstractComponentGenerationStrategy
-
createTextField
-
createDateTimeField
protected com.vaadin.flow.component.Component createDateTimeField(MessageTemplateParameter parameter) -
createDateField
-
createTimeField
-
createEntityField
@Nullable protected com.vaadin.flow.component.Component createEntityField(ComponentGenerationContext context) - Overrides:
createEntityFieldin classAbstractComponentGenerationStrategy
-
createEntityCollectionField
@Nullable protected com.vaadin.flow.component.Component createEntityCollectionField(ComponentGenerationContext context) -
createBooleanField
protected com.vaadin.flow.component.Component createBooleanField() -
createEnumField
- Overrides:
createEnumFieldin classAbstractComponentGenerationStrategy
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-