Class DynAttrPropertyFilterComponentGenerationStrategy
java.lang.Object
io.jmix.dynattrflowui.impl.factory.DynAttrComponentGenerationStrategy
io.jmix.dynattrflowui.impl.factory.DynAttrPropertyFilterComponentGenerationStrategy
- All Implemented Interfaces:
ComponentGenerationStrategy
,org.springframework.core.Ordered
@Component("dynat_DynAttrPropertyFilterComponentGenerationStrategy")
public class DynAttrPropertyFilterComponentGenerationStrategy
extends DynAttrComponentGenerationStrategy
-
Field Summary
Fields inherited from class io.jmix.dynattrflowui.impl.factory.DynAttrComponentGenerationStrategy
actions, applicationContext, attributeDependencies, attributeValidators, datatypeRegistry, dynamicModelMetadata, formatStringsRegistry, messages, metadata, msgBundleTools, optionsLoader, uiComponents, viewRegistry
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionDynAttrPropertyFilterComponentGenerationStrategy
(Messages messages, UiComponents uiComponents, DynAttrMetadata dynamicModelMetadata, Metadata metadata, MsgBundleTools msgBundleTools, AttributeOptionsLoader optionsLoader, AttributeValidators attributeValidators, ViewRegistry viewRegistry, Actions actions, AttributeDependencies attributeDependencies, FormatStringsRegistry formatStringsRegistry, org.springframework.context.ApplicationContext applicationContext, DatatypeRegistry datatypeRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.AbstractField<?,
?> createBooleanField
(ComponentGenerationContext context, AttributeDefinition attribute) com.vaadin.flow.component.Component
Creates a component according to the givenComponentGenerationContext
.protected com.vaadin.flow.component.Component
createComponentInternal
(ComponentGenerationContext context, MetaClass metaClass, String propertyName) protected com.vaadin.flow.component.Component
createDatatypeField
(ComponentGenerationContext context, AttributeDefinition attribute) protected TypedDateTimePicker<?>
createDateField
(ComponentGenerationContext context, AttributeDefinition attribute) protected com.vaadin.flow.component.AbstractField
createEntityField
(ComponentGenerationContext context, AttributeDefinition attribute) protected com.vaadin.flow.component.AbstractField<?,
?> protected com.vaadin.flow.component.AbstractField<?,
?> int
getOrder()
protected void
loadOptionsIfNeed
(com.vaadin.flow.component.Component component, AttributeDefinition attribute) protected void
setLookupActionScreen
(EntityLookupAction<?> lookupAction, AttributeDefinition attribute) Methods inherited from class io.jmix.dynattrflowui.impl.factory.DynAttrComponentGenerationStrategy
createCollectionField, createComboBox, createEnumCollectionField, createEnumerationField, createNumberField, createStringField, getLocalizedEnumerationMap, initValuesSelectActionByAttribute, setComboBoxOptionsLoader, setCustomDatatype, setDescription, setEditable, setLabel, setRequired, setValidators, setValueChangedListeners, setValueSource, setValuesPickerOptionsLoader, valueChangeListenerHandler
-
Constructor Details
-
DynAttrPropertyFilterComponentGenerationStrategy
public DynAttrPropertyFilterComponentGenerationStrategy(Messages messages, UiComponents uiComponents, DynAttrMetadata dynamicModelMetadata, Metadata metadata, MsgBundleTools msgBundleTools, AttributeOptionsLoader optionsLoader, AttributeValidators attributeValidators, ViewRegistry viewRegistry, Actions actions, AttributeDependencies attributeDependencies, FormatStringsRegistry formatStringsRegistry, org.springframework.context.ApplicationContext applicationContext, DatatypeRegistry datatypeRegistry)
-
-
Method Details
-
createComponent
Description copied from interface:ComponentGenerationStrategy
Creates a component according to the givenComponentGenerationContext
. If the strategy is not applicable to the given context it should return null value.- Specified by:
createComponent
in interfaceComponentGenerationStrategy
- Overrides:
createComponent
in classDynAttrComponentGenerationStrategy
- Parameters:
context
- the context instance- Returns:
- created component
-
createComponentInternal
protected com.vaadin.flow.component.Component createComponentInternal(ComponentGenerationContext context, MetaClass metaClass, String propertyName) - Overrides:
createComponentInternal
in classDynAttrComponentGenerationStrategy
-
createBooleanField
protected com.vaadin.flow.component.AbstractField<?,?> createBooleanField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createBooleanField
in classDynAttrComponentGenerationStrategy
-
createUnaryField
protected com.vaadin.flow.component.AbstractField<?,?> createUnaryField(ComponentGenerationContext context) -
createEntityField
protected com.vaadin.flow.component.AbstractField createEntityField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createEntityField
in classDynAttrComponentGenerationStrategy
-
loadOptionsIfNeed
protected void loadOptionsIfNeed(com.vaadin.flow.component.Component component, AttributeDefinition attribute) -
createIntervalField
protected com.vaadin.flow.component.AbstractField<?,?> createIntervalField(ComponentGenerationContext context) -
createDateField
protected TypedDateTimePicker<?> createDateField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createDateField
in classDynAttrComponentGenerationStrategy
-
createDatatypeField
protected com.vaadin.flow.component.Component createDatatypeField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createDatatypeField
in classDynAttrComponentGenerationStrategy
-
setLookupActionScreen
protected void setLookupActionScreen(EntityLookupAction<?> lookupAction, AttributeDefinition attribute) - Overrides:
setLookupActionScreen
in classDynAttrComponentGenerationStrategy
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- Overrides:
getOrder
in classDynAttrComponentGenerationStrategy
-