Skip to content

Commit 12e52b5

Browse files
refactor!: remove deprecated Element APIs from ConfirmDialog (#7745)
Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
1 parent c6fc9e3 commit 12e52b5

File tree

1 file changed

+0
-62
lines changed
  • vaadin-confirm-dialog-flow-parent/vaadin-confirm-dialog-flow/src/main/java/com/vaadin/flow/component/confirmdialog

1 file changed

+0
-62
lines changed

vaadin-confirm-dialog-flow-parent/vaadin-confirm-dialog-flow/src/main/java/com/vaadin/flow/component/confirmdialog/ConfirmDialog.java

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import com.vaadin.flow.component.shared.internal.OverlayAutoAddController;
3535
import com.vaadin.flow.component.shared.internal.OverlayClassListProxy;
3636
import com.vaadin.flow.dom.ClassList;
37-
import com.vaadin.flow.dom.Element;
3837
import com.vaadin.flow.dom.Style;
3938
import com.vaadin.flow.shared.Registration;
4039

@@ -367,18 +366,6 @@ public void setRejectButton(Component component) {
367366
SlotUtils.setSlot(this, "reject-button", component);
368367
}
369368

370-
/**
371-
* Sets custom Reject button
372-
*
373-
* @param element
374-
* the element to display instead of default Reject button
375-
* @deprecated Usage of Element API at Component level should be avoided
376-
*/
377-
@Deprecated(forRemoval = true)
378-
public void setRejectButton(Element element) {
379-
SlotUtils.setSlot(this, "reject-button", element);
380-
}
381-
382369
/**
383370
* Sets Cancel button text and `cancel` event listener. Makes Cancel button
384371
* visible
@@ -422,18 +409,6 @@ public void setCancelButton(Component component) {
422409
SlotUtils.setSlot(this, "cancel-button", component);
423410
}
424411

425-
/**
426-
* Sets custom cancel button
427-
*
428-
* @param element
429-
* the element to display instead of default Cancel button
430-
* @deprecated Usage of Element API at Component level should be avoided
431-
*/
432-
@Deprecated(forRemoval = true)
433-
public void setCancelButton(Element element) {
434-
SlotUtils.setSlot(this, "cancel-button", element);
435-
}
436-
437412
/**
438413
* Sets Confirm button text and `confirm` event listener
439414
*
@@ -476,18 +451,6 @@ public void setConfirmButton(Component component) {
476451
SlotUtils.setSlot(this, "confirm-button", component);
477452
}
478453

479-
/**
480-
* Sets custom confirm button
481-
*
482-
* @param element
483-
* the element to display instead of default Confirm button
484-
* @deprecated Usage of Element API at Component level should be avoided
485-
*/
486-
@Deprecated(forRemoval = true)
487-
public void setConfirmButton(Element element) {
488-
SlotUtils.setSlot(this, "confirm-button", element);
489-
}
490-
491454
/**
492455
* Sets confirmation message text
493456
*/
@@ -506,19 +469,6 @@ public void setText(Component component) {
506469
getElement().appendChild(component.getElement());
507470
}
508471

509-
/**
510-
* Sets custom confirmation message element
511-
*
512-
* @param element
513-
* the element to display instead of default confirmation text
514-
* node
515-
* @deprecated Usage of Element API at Component level should be avoided
516-
*/
517-
@Deprecated(forRemoval = true)
518-
public void setText(Element element) {
519-
getElement().appendChild(element);
520-
}
521-
522472
/**
523473
* Sets Confirm button text
524474
*/
@@ -603,18 +553,6 @@ public void setHeader(Component component) {
603553
SlotUtils.setSlot(this, "header", component);
604554
}
605555

606-
/**
607-
* Sets confirmation dialog custom header element
608-
*
609-
* @param element
610-
* the element to display instead of default header text
611-
* @deprecated Usage of Element API at Component level should be avoided
612-
*/
613-
@Deprecated(forRemoval = true)
614-
public void setHeader(Element element) {
615-
SlotUtils.setSlot(this, "header", element);
616-
}
617-
618556
/**
619557
* Opens the dialog.
620558
* <p>

0 commit comments

Comments
 (0)