forked from Andrew2000/Custom-Lead-Convert-Page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PageControllerBase.cls
93 lines (59 loc) · 3.27 KB
/
PageControllerBase.cls
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
This is a base class which can be extended by any page controller that will communicate
with the controllers for compnents.
If you add a new Visual Force page and controller for this Lead Convert app and want it
to communicate with the components you can extend this class.
*/
public with sharing virtual class PageControllerBase {
/*
these variables will hold references to the 4 component
controllers involved with the Lead Convert application
If you add new components and controllers they will
need to be added here in order for the Visual Force
page to communicate with them.
*/
//this is the controller for leadConvertCoreComponentController
private ComponentControllerBase myComponentController;
//this is the controller for leadConvertTaskInfoComponentController
private ComponentControllerBase myTaskComponentController;
//this is the controller for leadConvertRemindComponentController
private ComponentControllerBase myReminderComponentController;
//this is the controller for leadConvertTaskDescComponentController
private ComponentControllerBase myDescriptionComponentController;
// this method will return the leadConvertCoreComponentController. It is overridden in the LeadConverController class
public virtual ComponentControllerBase getMyComponentController() {
return myComponentController;
}
// this method will return the leadConvertTaskInfoComponentController. It is overridden in the LeadConverController class
public virtual ComponentControllerBase getmyTaskComponentController() {
return myTaskComponentController;
}
// this method will return the leadConvertRemindComponentController. It is overridden in the LeadConverController class
public virtual ComponentControllerBase getmyReminderComponentController() {
return myReminderComponentController;
}
// this method will return the leadConvertTaskDescComponentController. It is overridden in the LeadConverController class
public virtual ComponentControllerBase getmyDescriptionComponentController() {
return myDescriptionComponentController;
}
// this method will return the leadConvertTaskInfoComponentController. It is overridden in the LeadConverController class
public virtual void setTaskComponentController(ComponentControllerBase compController) {
myTaskComponentController = compController;
}
// this method will set the leadConvertCoreComponentController. It is overridden in the LeadConverController class
public virtual void setComponentController(ComponentControllerBase compController) {
myComponentController = compController;
}
// this method will set the leadConvertRemindComponentController. It is overridden in the LeadConverController class
public virtual void setReminderComponentController(ComponentControllerBase compController) {
myReminderComponentController = compController;
}
// this method will set the leadConvertTaskDescComponentController. It is overridden in the LeadConverController class
public virtual void setDescriptionComponentController(ComponentControllerBase compController) {
myDescriptionComponentController = compController;
}
// return the instance of this class
public PageControllerBase getThis() {
return this;
}
}