use of org.archcnl.ui.inputview.rulesormappingeditorview.mappingeditor.events.MappingCloseButtonClicked in project ArchCNL by Mari-Wie.
the class MappingEditorView method createTitleBar.
private HorizontalLayout createTitleBar(String mappingType) {
final Label title = new Label("Create or edit a " + mappingType);
title.setClassName("card-title-box--title");
final Button closeButton = new Button(new Icon(VaadinIcon.CLOSE), click -> fireEvent(new MappingCloseButtonClicked(this, true)));
final HorizontalLayout titleBar = new HorizontalLayout(title, closeButton);
titleBar.setWidthFull();
title.setWidthFull();
titleBar.setDefaultVerticalComponentAlignment(Alignment.CENTER);
return titleBar;
}
Aggregations