You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
668 B

package app.navigation;
import com.vaadin.flow.component.orderedlayout.FlexComponent;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
public abstract class AbstractNavigationHeader<T extends Navigation> extends HorizontalLayout {
protected final T navigation;
public AbstractNavigationHeader(T navigation) {
this.navigation = navigation;
defineLayout();
defineChildren();
}
private void defineLayout() {
setWidthFull();
setAlignItems(FlexComponent.Alignment.CENTER);
setJustifyContentMode(FlexComponent.JustifyContentMode.END);
}
protected abstract void defineChildren();
}