io.imunity.vaadin.endpoint.common.forms.RegistrationLayoutsContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-vaadin-endpoint-common Show documentation
Show all versions of unity-server-vaadin-endpoint-common Show documentation
Common Vaadin endpoint components
The newest version!
/*
* Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.vaadin.endpoint.common.forms;
import com.vaadin.flow.component.Unit;
import com.vaadin.flow.component.orderedlayout.FlexComponent;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
public class RegistrationLayoutsContainer
{
public final VerticalLayout registrationFormLayout;
public RegistrationLayoutsContainer(Float formLayoutWidth, Unit formLayoutWidthUnit)
{
this.registrationFormLayout = new VerticalLayout();
this.registrationFormLayout.setWidth(formLayoutWidth, formLayoutWidthUnit);
this.registrationFormLayout.setMargin(false);
this.registrationFormLayout.setPadding(false);
this.registrationFormLayout.getStyle().set("gap", "0");
}
public void addFormLayoutToRootLayout(VerticalLayout main)
{
main.add(registrationFormLayout);
main.setAlignItems(FlexComponent.Alignment.CENTER);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy