Class HorizontalLayoutComponentDefinition

    • Constructor Detail

      • HorizontalLayoutComponentDefinition

        public HorizontalLayoutComponentDefinition​(VerticalAlignment verticalAlignment,
                                                   boolean spacing,
                                                   boolean padding)
        Creates a new HorizontalLayoutComponentDefinition with the given vertical alignment.

        For use cases where input fields do not have captions, VerticalAlignment.MIDDLE yields the most consistent looking result. However, captions above input fields would create the effect that input fields themselves are lower than those components without a caption, e.g. buttons. In this case, consider VerticalAlignment.BOTTOM to make the controls better aligned. The state of spacing and padding can be applied. When activ then predefined style will apply to the layout. By default padding is deactivated and spacing is activated.