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, viewRegistryFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDynAttrPropertyFilterComponentGenerationStrategy(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.ComponentCreates a component according to the givenComponentGenerationContext.protected com.vaadin.flow.component.ComponentcreateComponentInternal(ComponentGenerationContext context, MetaClass metaClass, String propertyName) protected com.vaadin.flow.component.ComponentcreateDatatypeField(ComponentGenerationContext context, AttributeDefinition attribute) protected TypedDateTimePicker<?>createDateField(ComponentGenerationContext context, AttributeDefinition attribute) protected com.vaadin.flow.component.AbstractFieldcreateEntityField(ComponentGenerationContext context, AttributeDefinition attribute) protected com.vaadin.flow.component.AbstractField<?,?> protected com.vaadin.flow.component.AbstractField<?,?> intgetOrder()protected voidloadOptionsIfNeed(com.vaadin.flow.component.Component component, AttributeDefinition attribute) protected voidsetLookupActionScreen(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: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- Overrides:
createComponentin classDynAttrComponentGenerationStrategy- Parameters:
context- the context instance- Returns:
- created component
-
createComponentInternal
protected com.vaadin.flow.component.Component createComponentInternal(ComponentGenerationContext context, MetaClass metaClass, String propertyName) - Overrides:
createComponentInternalin classDynAttrComponentGenerationStrategy
-
createBooleanField
protected com.vaadin.flow.component.AbstractField<?,?> createBooleanField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createBooleanFieldin classDynAttrComponentGenerationStrategy
-
createUnaryField
protected com.vaadin.flow.component.AbstractField<?,?> createUnaryField(ComponentGenerationContext context) -
createEntityField
protected com.vaadin.flow.component.AbstractField createEntityField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createEntityFieldin 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:
createDateFieldin classDynAttrComponentGenerationStrategy
-
createDatatypeField
protected com.vaadin.flow.component.Component createDatatypeField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createDatatypeFieldin classDynAttrComponentGenerationStrategy
-
setLookupActionScreen
protected void setLookupActionScreen(EntityLookupAction<?> lookupAction, AttributeDefinition attribute) - Overrides:
setLookupActionScreenin classDynAttrComponentGenerationStrategy
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Overrides:
getOrderin classDynAttrComponentGenerationStrategy
-