Enum SectionLayoutDefinition

    • Method Detail

      • values

        public static SectionLayoutDefinition[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SectionLayoutDefinition c : SectionLayoutDefinition.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SectionLayoutDefinition valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • createComponentWrapperAndAddComponentToSection

        protected abstract VaadinComponentWrapper createComponentWrapperAndAddComponentToSection​(BaseSection section,
                                                                                                 com.vaadin.flow.component.html.Label label,
                                                                                                 com.vaadin.flow.component.Component component)
        Creates the component wrapper for the given Label and Component and adds it to the given BaseSection.

        Note that it is necessary to add the component directly to the section in this method. In case of a FormItemComponentWrapper, the LabelComponentFormItem has to be added to the section, and not the given Component itself. However, it is not possible to retrieve the created LabelComponentFormItem from the FormItemComponentWrapper after creation. Thus, the LabelComponentFormItem has to be added to the section before it is returned.