use of com.vaadin.flow.component.ClickEvent in project karnak by OsiriX-Foundation.
the class WarningConfirmDialog method createButtonCancel.
@SuppressWarnings("serial")
private void createButtonCancel() {
buttonCancel = new Button();
buttonCancel.setText(valueCancel);
buttonCancel.setWidth("90px");
buttonCancel.addClickListener((ComponentEventListener<ClickEvent<Button>>) event -> dialog.close());
}
use of com.vaadin.flow.component.ClickEvent in project karnak by OsiriX-Foundation.
the class ConfirmDialog method createNoBtn.
@SuppressWarnings("serial")
private void createNoBtn() {
noBtn = new Button();
noBtn.addClassName("primary");
noBtn.setText("Non");
noBtn.setWidth("90px");
noBtn.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 DicomWorkListView method buildClearBtn.
@SuppressWarnings("serial")
private void buildClearBtn() {
clearBtn = new Button("Clear");
clearBtn.getStyle().set("cursor", "pointer");
clearBtn.addClickListener(new ComponentEventListener<ClickEvent<Button>>() {
@Override
public void onComponentEvent(ClickEvent<Button> event) {
binderForWorkListQuery.readBean(workListQueryData);
}
});
}
use of com.vaadin.flow.component.ClickEvent in project karnak by OsiriX-Foundation.
the class DicomWorkListView method buildQueryBtn.
@SuppressWarnings("serial")
private void buildQueryBtn() {
queryBtn = new Button("Query");
queryBtn.getStyle().set("cursor", "pointer");
queryBtn.setEnabled(false);
queryBtn.addClassName("stroked-button");
queryBtn.addClickListener(new ComponentEventListener<ClickEvent<Button>>() {
@Override
public void onComponentEvent(ClickEvent<Button> event) {
executeQuery();
}
});
}
use of com.vaadin.flow.component.ClickEvent in project aire-components by aire-ux.
the class TopologyView method createRestartButtonMenu.
private Button createRestartButtonMenu() {
val button = new Button("Restart", VaadinIcon.REFRESH.create());
button.addThemeVariants(ButtonVariant.LUMO_TERTIARY);
registerLifecycleItem(button, Lifecycle.State.Active);
button.addClickListener((ComponentEventListener<ClickEvent<Button>>) event -> {
Overlays.open(this, ModuleScheduleOverlay.class, Mode.Scheduling, getZephyr().getKernel(), getSelectedModule(), Actions.Stop);
});
return button;
}
Aggregations