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 Details

  • Constructor Details

    • AbstractConfigurationDetail

      public AbstractConfigurationDetail()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • initContent

      protected com.vaadin.flow.component.formlayout.FormLayout initContent()
      Overrides:
      initContent in class com.vaadin.flow.component.Composite<com.vaadin.flow.component.formlayout.FormLayout>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.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

      public com.vaadin.flow.shared.Registration addValidator(Validator validator)
      Specified by:
      addValidator in interface SupportsValidation
    • executeValidators

      public void executeValidators() throws ValidationException
      Specified by:
      executeValidators in interface SupportsValidation
      Throws:
      ValidationException
    • isInvalid

      public boolean isInvalid()
      Specified by:
      isInvalid in interface com.vaadin.flow.component.HasValidation
      Specified by:
      isInvalid in interface com.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 interface com.vaadin.flow.component.HasValidation
      Specified by:
      setInvalid in interface com.vaadin.flow.component.shared.HasValidationProperties
      Specified by:
      setInvalid in interface SupportsValidation
      Parameters:
      invalid - whether field should be invalid
    • createCheckbox

      protected JmixCheckbox createCheckbox()
    • createTextField

      protected TypedTextField<String> createTextField()