use of org.archcnl.ui.common.andtriplets.triplet.events.TripletViewDeleteButtonPressedEvent in project ArchCNL by Mari-Wie.
the class TripletView method addCreateRemoveButtons.
private void addCreateRemoveButtons() {
HorizontalLayout buttons = new HorizontalLayout();
buttons.add(new Button(new Icon(VaadinIcon.TRASH), click -> fireEvent(new TripletViewDeleteButtonPressedEvent(this))));
buttons.add(new Button(new Icon(VaadinIcon.PLUS), click -> fireEvent(new AddTripletViewAfterButtonPressedEvent(this))));
add(buttons);
setVerticalComponentAlignment(Alignment.END, buttons);
}
Aggregations