1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package info.magnolia.ui.framework.action;
35
36 import info.magnolia.i18nsystem.I18nText;
37 import info.magnolia.ui.api.action.ConfiguredActionDefinition;
38
39
40
41
42
43
44 @Deprecated
45 public class ConfirmationActionDefinition extends ConfiguredActionDefinition {
46
47 private String confirmationHeader;
48 private String confirmationMessage;
49 private String successActionName;
50 private String cancelActionName;
51 private String proceedLabel;
52 private String cancelLabel;
53 private boolean defaultCancel;
54
55 public ConfirmationActionDefinition() {
56 setImplementationClass(ConfirmationAction.class);
57 }
58
59 @I18nText
60 public String getConfirmationHeader() {
61 return confirmationHeader;
62 }
63
64 @I18nText
65 public String getConfirmationMessage() {
66 return confirmationMessage;
67 }
68
69 public String getSuccessActionName() {
70 return successActionName;
71 }
72
73 public String getCancelActionName() {
74 return cancelActionName;
75 }
76
77 @I18nText
78 public String getProceedLabel() {
79 return proceedLabel;
80 }
81
82 @I18nText
83 public String getCancelLabel() {
84 return cancelLabel;
85 }
86
87 public boolean isDefaultCancel() {
88 return defaultCancel;
89 }
90
91 public void setSuccessActionName(String successActionName) {
92 this.successActionName = successActionName;
93 }
94
95 public void setCancelActionName(String cancelActionName) {
96 this.cancelActionName = cancelActionName;
97 }
98
99 public void setConfirmationMessage(String confirmationMessage) {
100 this.confirmationMessage = confirmationMessage;
101 }
102
103 public void setConfirmationHeader(String confirmationHeader) {
104 this.confirmationHeader = confirmationHeader;
105 }
106
107 public void setProceedLabel(String proceedLabel) {
108 this.proceedLabel = proceedLabel;
109 }
110
111 public void setCancelLabel(String cancelLabel) {
112 this.cancelLabel = cancelLabel;
113 }
114
115 public void setDefaultCancel(boolean defaultCancel) {
116 this.defaultCancel = defaultCancel;
117 }
118 }