Class AbstractConfigurationDetail
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.formlayout.FormLayout>
io.jmix.flowui.component.genericfilter.configuration.AbstractConfigurationDetail
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.HasValidation
,com.vaadin.flow.component.shared.HasValidationProperties
,SupportsValidation
,Serializable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
FilterConfigurationDetail
,UiDataFilterConfigurationDetail
public abstract class AbstractConfigurationDetail
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.formlayout.FormLayout>
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, SupportsValidation
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected static final String
protected TypedTextField<String>
protected static final String
protected JmixCheckbox
protected Messages
protected static final String
protected TypedTextField<String>
protected UiComponentProperties
protected UiComponents
Fields inherited from interface io.jmix.flowui.component.SupportsValidation
PROPERTY_ERROR_MESSAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
addValidator
(Validator validator) void
protected void
protected JmixCheckbox
protected void
protected void
protected void
protected TypedTextField<String>
void
protected void
generatedIdFieldValueChangeListener
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.Checkbox, Boolean> event) protected com.vaadin.flow.component.formlayout.FormLayout
protected abstract void
boolean
protected void
nameFieldValueChangeListener
(SupportsTypedValue.TypedValueChangeEvent<TypedTextField<String>, String> event) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setInvalid
(boolean invalid) Sets invalid state to the field considering result of field validation.Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface com.vaadin.flow.component.HasValidation
setManualValidation
Methods inherited from interface io.jmix.flowui.component.SupportsValidation
getErrorMessage, setErrorMessage
-
Field Details
-
NAME_FIELD_ID
- See Also:
-
GENERATED_ID_FIELD_ID
- See Also:
-
CONFIGURATION_ID_FIELD_ID
- See Also:
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
uiComponents
-
messages
-
uiComponentProperties
-
nameField
-
configurationIdField
-
generatedIdField
-
-
Constructor Details
-
AbstractConfigurationDetail
public AbstractConfigurationDetail()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
initContent
protected com.vaadin.flow.component.formlayout.FormLayout initContent()- Overrides:
initContent
in classcom.vaadin.flow.component.Composite<com.vaadin.flow.component.formlayout.FormLayout>
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
autowireDependencies
protected void autowireDependencies() -
initFields
protected abstract void initFields() -
createNameField
protected void createNameField() -
createGeneratedIdField
protected void createGeneratedIdField() -
createConfigurationIdField
protected void createConfigurationIdField() -
nameFieldValueChangeListener
protected void nameFieldValueChangeListener(SupportsTypedValue.TypedValueChangeEvent<TypedTextField<String>, String> event) -
generatedIdFieldValueChangeListener
protected void generatedIdFieldValueChangeListener(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.Checkbox, Boolean> event) -
addValidator
- Specified by:
addValidator
in interfaceSupportsValidation
-
executeValidators
- Specified by:
executeValidators
in interfaceSupportsValidation
- Throws:
ValidationException
-
isInvalid
public boolean isInvalid()- Specified by:
isInvalid
in interfacecom.vaadin.flow.component.HasValidation
- Specified by:
isInvalid
in interfacecom.vaadin.flow.component.shared.HasValidationProperties
-
setInvalid
public void setInvalid(boolean invalid) Description copied from interface:SupportsValidation
Sets invalid state to the field considering result of field validation.- Invalid - false and validation passed - false = field is invalid
- Invalid - false and validation passed - true = field is valid
- Invalid - true and validation passed - false = field is invalid
- Invalid - true and validation passed - true = field is invalid
- Specified by:
setInvalid
in interfacecom.vaadin.flow.component.HasValidation
- Specified by:
setInvalid
in interfacecom.vaadin.flow.component.shared.HasValidationProperties
- Specified by:
setInvalid
in interfaceSupportsValidation
- Parameters:
invalid
- whether field should be invalid
-
createCheckbox
-
createTextField
-