1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.widget;
17
18 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
20 import org.kuali.rice.krad.uif.component.Component;
21 import org.kuali.rice.krad.uif.element.Header;
22 import org.kuali.rice.krad.uif.view.View;
23
24 import java.io.Serializable;
25
26
27
28
29
30
31
32
33
34
35
36 @BeanTag(name = "syntaxHighlighter-bean", parent = "Uif-SyntaxHighlighter")
37 public class SyntaxHighlighter extends WidgetBase {
38
39 private Header header;
40 private String sourceCode;
41 private String pluginCssClass;
42 private boolean allowCopy;
43 private boolean showCopyConfirmation;
44
45 public SyntaxHighlighter() {
46 super();
47 allowCopy = true;
48 showCopyConfirmation = false;
49 }
50
51 @Override
52 public void performFinalize(View view, Object model, Component parent) {
53 super.performFinalize(view, model, parent);
54 }
55
56 @BeanTagAttribute(name="header")
57 public Header getHeader() {
58 return header;
59 }
60
61 public void setHeader(Header header) {
62 this.header = header;
63 }
64
65
66
67
68
69
70 @BeanTagAttribute(name="sourceCode")
71 public String getSourceCode() {
72 return sourceCode;
73 }
74
75
76
77
78
79
80 public void setSourceCode(String sourceCode) {
81 this.sourceCode = sourceCode;
82 }
83
84
85
86
87
88
89
90
91
92
93 @BeanTagAttribute(name="pluginCssClass")
94 public String getPluginCssClass() {
95 return pluginCssClass;
96 }
97
98
99
100
101
102
103 public void setPluginCssClass(String pluginCssClass) {
104 this.pluginCssClass = pluginCssClass;
105 }
106
107
108
109
110
111
112
113
114
115
116
117 public boolean isAllowCopy() {
118 return allowCopy;
119 }
120
121
122
123
124
125
126 public void setAllowCopy(boolean allowCopy) {
127 this.allowCopy = allowCopy;
128 }
129
130
131
132
133
134
135 public boolean isShowCopyConfirmation() {
136 return showCopyConfirmation;
137 }
138
139
140
141
142
143
144 public void setShowCopyConfirmation(boolean showCopyConfirmation) {
145 this.showCopyConfirmation = showCopyConfirmation;
146 }
147 }