34
34
import com .vaadin .flow .component .shared .internal .OverlayAutoAddController ;
35
35
import com .vaadin .flow .component .shared .internal .OverlayClassListProxy ;
36
36
import com .vaadin .flow .dom .ClassList ;
37
- import com .vaadin .flow .dom .Element ;
38
37
import com .vaadin .flow .dom .Style ;
39
38
import com .vaadin .flow .shared .Registration ;
40
39
@@ -367,18 +366,6 @@ public void setRejectButton(Component component) {
367
366
SlotUtils .setSlot (this , "reject-button" , component );
368
367
}
369
368
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
-
382
369
/**
383
370
* Sets Cancel button text and `cancel` event listener. Makes Cancel button
384
371
* visible
@@ -422,18 +409,6 @@ public void setCancelButton(Component component) {
422
409
SlotUtils .setSlot (this , "cancel-button" , component );
423
410
}
424
411
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
-
437
412
/**
438
413
* Sets Confirm button text and `confirm` event listener
439
414
*
@@ -476,18 +451,6 @@ public void setConfirmButton(Component component) {
476
451
SlotUtils .setSlot (this , "confirm-button" , component );
477
452
}
478
453
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
-
491
454
/**
492
455
* Sets confirmation message text
493
456
*/
@@ -506,19 +469,6 @@ public void setText(Component component) {
506
469
getElement ().appendChild (component .getElement ());
507
470
}
508
471
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
-
522
472
/**
523
473
* Sets Confirm button text
524
474
*/
@@ -603,18 +553,6 @@ public void setHeader(Component component) {
603
553
SlotUtils .setSlot (this , "header" , component );
604
554
}
605
555
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
-
618
556
/**
619
557
* Opens the dialog.
620
558
* <p>
0 commit comments