Package io.jmix.flowui.component.factory
Class InputDialogGenerationStrategy
java.lang.Object
io.jmix.flowui.component.factory.AbstractComponentGenerationStrategy
io.jmix.flowui.component.factory.InputDialogGenerationStrategy
- All Implemented Interfaces:
ComponentGenerationStrategy
,org.springframework.core.Ordered
@Component("flowui_InputDialogGenerationStrategy")
public class InputDialogGenerationStrategy
extends AbstractComponentGenerationStrategy
implements org.springframework.core.Ordered
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class io.jmix.flowui.component.factory.AbstractComponentGenerationStrategy
actions, datatypeRegistry, entityFieldCreationSupport, messages, metadata, metadataTools, uiComponents
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionInputDialogGenerationStrategy
(UiComponents uiComponents, Metadata metadata, MetadataTools metadataTools, Actions actions, DatatypeRegistry datatypeRegistry, Messages messages, EntityFieldCreationSupport entityFieldCreationSupport) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.Component
com.vaadin.flow.component.Component
Creates a component according to the givenComponentGenerationContext
.protected com.vaadin.flow.component.Component
protected com.vaadin.flow.component.Component
createDateField
(Datatype<?> datatype) protected com.vaadin.flow.component.Component
createDateTimeField
(Datatype<?> datatype) protected com.vaadin.flow.component.Component
protected com.vaadin.flow.component.Component
protected com.vaadin.flow.component.Component
createTextField
(Datatype<?> datatype) protected com.vaadin.flow.component.Component
createTimeField
(Datatype<?> datatype) int
getOrder()
protected boolean
isDateBasedDatatype
(Datatype<?> datatype) protected boolean
isDateTimeBasedDatatype
(Datatype<?> datatype) protected boolean
isTimeBasedDatatype
(Datatype<?> datatype) Methods inherited from class io.jmix.flowui.component.factory.AbstractComponentGenerationStrategy
createBooleanField, createCollectionField, createDatatypeField, createDatePicker, createDateTimePicker, createFileStorageUploadField, createFileUploadField, createNumberField, createStringField, createTimePicker, resolveMetaPropertyPath, setValueSource
-
Field Details
-
dateTimeDatatypes
-
dateDatatypes
-
timeDatatypes
-
-
Constructor Details
-
InputDialogGenerationStrategy
public InputDialogGenerationStrategy(UiComponents uiComponents, Metadata metadata, MetadataTools metadataTools, Actions actions, DatatypeRegistry datatypeRegistry, Messages messages, EntityFieldCreationSupport entityFieldCreationSupport)
-
-
Method Details
-
createComponent
@Nullable public com.vaadin.flow.component.Component createComponent(ComponentGenerationContext context) Description copied from interface:ComponentGenerationStrategy
Creates a component according to the givenComponentGenerationContext
.- Specified by:
createComponent
in interfaceComponentGenerationStrategy
- Parameters:
context
- the context instance- Returns:
- created component
-
createComponentInternal
@Nullable protected com.vaadin.flow.component.Component createComponentInternal(ComponentGenerationContext context) - Overrides:
createComponentInternal
in classAbstractComponentGenerationStrategy
-
createTextField
-
createDateTimeField
-
createDateField
-
createTimeField
-
createEntityField
@Nullable protected com.vaadin.flow.component.Component createEntityField(ComponentGenerationContext context) - Overrides:
createEntityField
in classAbstractComponentGenerationStrategy
-
createBooleanField
protected com.vaadin.flow.component.Component createBooleanField() -
createEnumField
- Overrides:
createEnumField
in classAbstractComponentGenerationStrategy
-
isDateBasedDatatype
-
isTimeBasedDatatype
-
isDateTimeBasedDatatype
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-