Package io.jmix.dynattrui.impl.factory
Class DynAttrPropertyFilterComponentGenerationStrategy
java.lang.Object
io.jmix.dynattrui.impl.factory.DynAttrComponentGenerationStrategy
io.jmix.dynattrui.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.dynattrui.impl.factory.DynAttrComponentGenerationStrategy
actions, applicationContext, attributeDependencies, attributeValidators, dynamicModelMetadata, formatStringsRegistry, messages, metadata, msgBundleTools, optionsLoader, screensHelper, uiComponents, windowConfig
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, WindowConfig windowConfig, ScreensHelper screensHelper, Actions actions, AttributeDependencies attributeDependencies, FormatStringsRegistry formatStringsRegistry, org.springframework.context.ApplicationContext applicationContext, DataAwareComponentsTools dataAwareComponentsTools) -
Method Summary
Modifier and TypeMethodDescriptionprotected Field
createBooleanField
(ComponentGenerationContext context, AttributeDefinition attribute) Creates a component according to the givenComponentGenerationContext
.protected Component
createComponentInternal
(ComponentGenerationContext context, MetaClass metaClass, String propertyName) protected Component
createDatatypeField
(ComponentGenerationContext context, AttributeDefinition attribute) protected Component
createDateField
(ComponentGenerationContext context, AttributeDefinition attribute) protected EntityPicker
createEntityField
(ComponentGenerationContext context, AttributeDefinition attribute) protected Field
protected Field
int
getOrder()
protected void
loadOptionsIfNeed
(Component component, AttributeDefinition attribute) protected void
setLookupActionScreen
(EntityLookupAction lookupAction, AttributeDefinition attribute) protected void
setValidators
(Field field, AttributeDefinition attribute) Methods inherited from class io.jmix.dynattrui.impl.factory.DynAttrComponentGenerationStrategy
createClassField, createCollectionField, createComboBox, createEnumerationField, createNumberField, createStringField, getLocalizedEnumerationMap, initValuesSelectActionByAttribute, setCaption, setComboBoxOptionsLoader, setCustomDatatype, setEditable, setRequired, setValueChangedListeners, setValueSource, setValuesPickerOptionsLoader
-
Field Details
-
dataAwareComponentsTools
-
-
Constructor Details
-
DynAttrPropertyFilterComponentGenerationStrategy
public DynAttrPropertyFilterComponentGenerationStrategy(Messages messages, UiComponents uiComponents, DynAttrMetadata dynamicModelMetadata, Metadata metadata, MsgBundleTools msgBundleTools, AttributeOptionsLoader optionsLoader, AttributeValidators attributeValidators, WindowConfig windowConfig, ScreensHelper screensHelper, Actions actions, AttributeDependencies attributeDependencies, FormatStringsRegistry formatStringsRegistry, org.springframework.context.ApplicationContext applicationContext, DataAwareComponentsTools dataAwareComponentsTools)
-
-
Method Details
-
createComponent
Description copied from interface:ComponentGenerationStrategy
Creates a component according to the givenComponentGenerationContext
.- Specified by:
createComponent
in interfaceComponentGenerationStrategy
- Overrides:
createComponent
in classDynAttrComponentGenerationStrategy
- Parameters:
context
- the context instance- Returns:
- created component
-
createComponentInternal
protected Component createComponentInternal(ComponentGenerationContext context, MetaClass metaClass, String propertyName) - Overrides:
createComponentInternal
in classDynAttrComponentGenerationStrategy
-
createBooleanField
protected Field createBooleanField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createBooleanField
in classDynAttrComponentGenerationStrategy
-
createUnaryField
-
createEntityField
protected EntityPicker createEntityField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createEntityField
in classDynAttrComponentGenerationStrategy
-
loadOptionsIfNeed
-
createIntervalField
-
createDateField
protected Component createDateField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createDateField
in classDynAttrComponentGenerationStrategy
-
createDatatypeField
protected Component createDatatypeField(ComponentGenerationContext context, AttributeDefinition attribute) - Overrides:
createDatatypeField
in classDynAttrComponentGenerationStrategy
-
setLookupActionScreen
protected void setLookupActionScreen(EntityLookupAction lookupAction, AttributeDefinition attribute) - Overrides:
setLookupActionScreen
in classDynAttrComponentGenerationStrategy
-
setValidators
- Overrides:
setValidators
in classDynAttrComponentGenerationStrategy
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- Overrides:
getOrder
in classDynAttrComponentGenerationStrategy
-