1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
package net.smartlab.web.page; |
25 |
|
|
26 |
|
import javax.servlet.jsp.JspException; |
27 |
|
import javax.servlet.jsp.PageContext; |
28 |
|
import javax.servlet.jsp.tagext.Tag; |
29 |
|
import javax.servlet.jsp.tagext.TagSupport; |
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
@author |
35 |
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 6 |
Complexity Density: 1,2 |
|
36 |
|
public abstract class AbstractTag implements Tag { |
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
protected PageContext context; |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
private Tag parent; |
47 |
|
|
48 |
|
|
49 |
|
@see |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0
|
public void setPageContext(PageContext context) {... |
52 |
0
|
this.context = context; |
53 |
|
} |
54 |
|
|
55 |
|
|
56 |
|
@see |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0
|
public void setParent(Tag parent) {... |
59 |
0
|
this.parent = parent; |
60 |
|
} |
61 |
|
|
62 |
|
|
63 |
|
@see |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0
|
public Tag getParent() {... |
66 |
0
|
return parent; |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
|
@see |
71 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
72 |
0
|
public int doEndTag() throws JspException {... |
73 |
0
|
return EVAL_PAGE; |
74 |
|
} |
75 |
|
|
76 |
|
|
77 |
|
@see |
78 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
79 |
0
|
public void release() {... |
80 |
|
|
81 |
|
} |
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
@return |
87 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
0
|
protected Paginator getPaginator() {... |
89 |
0
|
return ((PaginateTag)TagSupport.findAncestorWithClass(this, PaginateTag.class)).getPaginator(); |
90 |
|
} |
91 |
|
} |