use of com.vaadin.flow.component.ClickEvent in project karnak by OsiriX-Foundation.
the class DicomWorkListSelectionDialog method buildCancelBtn.
@SuppressWarnings("serial")
private void buildCancelBtn() {
cancelBtn = new Button("Cancel");
cancelBtn.addClickListener(new ComponentEventListener<ClickEvent<Button>>() {
@Override
public void onComponentEvent(ClickEvent<Button> event) {
dialog.close();
}
});
}
use of com.vaadin.flow.component.ClickEvent in project karnak by OsiriX-Foundation.
the class ConfirmDialog method createYesBtn.
@SuppressWarnings("serial")
private void createYesBtn() {
yesBtn = new Button();
yesBtn.addClassName("stroked-button");
yesBtn.addClassName("primary");
yesBtn.setText("Oui");
yesBtn.setWidth("90px");
yesBtn.focus();
yesBtn.addClickListener(new ComponentEventListener<ClickEvent<Button>>() {
@Override
public void onComponentEvent(ClickEvent<Button> event) {
fireConfirmationEvent();
dialog.close();
}
});
yesBtn.addClickShortcut(Key.ENTER);
}
use of com.vaadin.flow.component.ClickEvent in project aire-components by aire-ux.
the class TopologyView method createStartMenuButton.
private Button createStartMenuButton() {
val button = new Button("Start", VaadinIcon.PLAY.create());
button.addThemeVariants(ButtonVariant.LUMO_TERTIARY, ButtonVariant.LUMO_SUCCESS);
registerLifecycleItem(button, Lifecycle.State.Active);
button.addClickListener((ComponentEventListener<ClickEvent<Button>>) event -> {
Overlays.open(this, ModuleScheduleOverlay.class, Mode.Scheduling, getZephyr().getKernel(), getSelectedModule(), Actions.Activate);
});
return button;
}
Aggregations