1
14
15 package com.liferay.taglib.ui;
16
17 import com.liferay.taglib.util.IncludeTag;
18
19 import javax.servlet.http.HttpServletRequest;
20
21
26 public class CustomAttributeListTag extends IncludeTag {
27
28 public void setClassName(String className) {
29 _className = className;
30 }
31
32 public void setClassPK(long classPK) {
33 _classPK = classPK;
34 }
35
36 public void setEditable(boolean editable) {
37 _editable = editable;
38 }
39
40 public void setLabel(boolean label) {
41 _label = label;
42 }
43
44 protected void cleanUp() {
45 _className = null;
46 _classPK = 0;
47 _editable = false;
48 _label = false;
49 }
50
51 protected String getPage() {
52 return _PAGE;
53 }
54
55 protected void setAttributes(HttpServletRequest request) {
56 request.setAttribute(
57 "liferay-ui:custom-attribute-list:className", _className);
58 request.setAttribute(
59 "liferay-ui:custom-attribute-list:classPK",
60 String.valueOf(_classPK));
61 request.setAttribute(
62 "liferay-ui:custom-attribute-list:editable",
63 String.valueOf(_editable));
64 request.setAttribute(
65 "liferay-ui:custom-attribute-list:label", String.valueOf(_label));
66 }
67
68 private static final String _PAGE =
69 "/html/taglib/ui/custom_attribute_list/page.jsp";
70
71 private String _className;
72 private long _classPK;
73 private boolean _editable;
74 private boolean _label;
75
76 }