Class AppSettingsComponentGenerationStrategy
java.lang.Object
io.jmix.flowui.component.factory.AbstractComponentGenerationStrategy
io.jmix.appsettingsflowui.componentfactory.AppSettingsComponentGenerationStrategy
- All Implemented Interfaces:
ComponentGenerationStrategy
,org.springframework.core.Ordered
@Component("appsettings_AppSettingsComponentGenerationStrategy")
public class AppSettingsComponentGenerationStrategy
extends AbstractComponentGenerationStrategy
implements org.springframework.core.Ordered
-
Field Summary
Fields 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
ConstructorDescriptionAppSettingsComponentGenerationStrategy
(UiComponents uiComponents, Metadata metadata, MetadataTools metadataTools, Actions actions, DatatypeRegistry datatypeRegistry, Messages messages, EntityFieldCreationSupport entityFieldCreationSupport) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected com.vaadin.flow.component.select.Select<Boolean>
com.vaadin.flow.component.Component
Creates a component according to the givenComponentGenerationContext
.protected EntityPicker<?>
protected com.vaadin.flow.component.select.Select<?>
createEnumField
(Range range) protected com.vaadin.flow.component.AbstractField
int
getOrder()
protected boolean
isBoolean
(MetaProperty metaProperty) protected static boolean
isSecret
(MetaProperty metaProperty) protected boolean
requireTextArea
(MetaProperty metaProperty, Object item) Methods inherited from class io.jmix.flowui.component.factory.AbstractComponentGenerationStrategy
createBooleanField, createCollectionField, createComponentInternal, createDatatypeField, createDatePicker, createDateTimePicker, createEntityField, createEnumField, createFileStorageUploadField, createFileUploadField, createNumberField, createStringField, createTimePicker, isComposition, resolveMetaPropertyPath, setValueSource
-
Constructor Details
-
AppSettingsComponentGenerationStrategy
public AppSettingsComponentGenerationStrategy(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
. If the strategy is not applicable to the given context it should return null value.- Specified by:
createComponent
in interfaceComponentGenerationStrategy
- Parameters:
context
- the context instance- Returns:
- created component
-
createEnumField
-
createEntityPickerField
-
createBooleanField
-
createPasswordField
protected com.vaadin.flow.component.AbstractField createPasswordField() -
isSecret
-
isBoolean
-
requireTextArea
-
containsSeparator
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-