Class MandatoryAttributesLayout

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.formlayout.FormLayout>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable

    public class MandatoryAttributesLayout
    extends com.vaadin.flow.component.formlayout.FormLayout
    Creates a form layout with the mandatory attributes for new object
    Author:
    Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vaadin.flow.component.formlayout.FormLayout

        com.vaadin.flow.component.formlayout.FormLayout.FormItem, com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)  
      • Methods inherited from class com.vaadin.flow.component.formlayout.FormLayout

        add, addFormItem, addFormItem, getColspan, getResponsiveSteps, setColspan, setResponsiveSteps, setResponsiveSteps
      • Methods inherited from class com.vaadin.flow.component.formlayout.GeneratedVaadinFormLayout

        getResponsiveStepsJsonObject, setResponsiveSteps, updateStyles
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.ClickNotifier

        addClickListener, addClickShortcut
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.HasComponents

        add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasEnabled

        isEnabled, setEnabled
      • Methods inherited from interface com.vaadin.flow.component.HasSize

        getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
    • Constructor Detail

      • MandatoryAttributesLayout

        public MandatoryAttributesLayout​(com.vaadin.flow.component.textfield.TextField txtName,
                                         ConfirmDialog wdw,
                                         HashMap<String,​String> attributes,
                                         List<AttributeMetadata> mandatoryAttributesInSelectedClass,
                                         ApplicationEntityManager aem,
                                         LoggingService log)
        Creates a form layout with the mandatory attributes for new object
        Parameters:
        txtName - The name attribute in new single business object it is optional by default, but if the name is included in the mandatory attributes we need to turn it into mandatory
        wdw - The action dialog
        attributes - Attributes for the new business object
        mandatoryAttributesInSelectedClass - To keep the mandatory attributes of the selected class
        aem - Reference to the Application Entity Manager
        log -
    • Method Detail

      • onAttach

        protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)
        Overrides:
        onAttach in class com.vaadin.flow.component.Component