Skip to content

Commit

Permalink
fire missing events
Browse files Browse the repository at this point in the history
  • Loading branch information
KochTobi committed Sep 3, 2024
1 parent faae89c commit 12a6103
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ protected void onConfirmClicked(ClickEvent<Button> clickEvent) {
protected void onCancelClicked(ClickEvent<Button> clickEvent) {
//as this is the first listener called on cancel event, no closing should happen here.
//If this method closes the dialog, the calling code has no opportunity to prevent that.
fireEvent(new CancelEvent(this, clickEvent.isFromClient()));
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ protected void onConfirmClicked(ClickEvent<Button> clickEvent) {
protected void onCancelClicked(ClickEvent<Button> clickEvent) {
//as this is the first listener called on cancel event, no closing should happen here.
//If this method closes the dialog, the calling code has no opportunity to prevent that.
fireEvent(new CancelEvent(this, clickEvent.isFromClient()));
}

public void setExperiment(ExperimentDraft experiment) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ protected void onConfirmClicked(ClickEvent<Button> clickEvent) {
protected void onCancelClicked(ClickEvent<Button> clickEvent) {
//as this is the first listener called on cancel event, no closing should happen here.
//If this method closes the dialog, the calling code has no opportunity to prevent that.
fireEvent(new CancelEvent(this, clickEvent.isFromClient()));
}

@Override
Expand Down

0 comments on commit 12a6103

Please sign in to comment.