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
27 public class SocialBookmarksTag extends IncludeTag {
28
29 public void setTarget(String target) {
30 _target = target;
31 }
32
33 public void setTitle(String title) {
34 _title = title;
35 }
36
37 public void setTypes(String types) {
38 _types = types;
39 }
40
41 public void setUrl(String url) {
42 _url = url;
43 }
44
45 protected void cleanUp() {
46 _target = null;
47 _title = null;
48 _types = null;
49 _url = null;
50 }
51
52 protected String getPage() {
53 return _PAGE;
54 }
55
56 protected void setAttributes(HttpServletRequest request) {
57 request.setAttribute("liferay-ui:social-bookmark:target", _target);
58 request.setAttribute("liferay-ui:social-bookmark:title", _title);
59 request.setAttribute("liferay-ui:social-bookmark:types", _types);
60 request.setAttribute("liferay-ui:social-bookmark:url", _url);
61 }
62
63 private static final String _PAGE =
64 "/html/taglib/ui/social_bookmarks/page.jsp";
65
66 private String _target;
67 private String _title;
68 private String _types;
69 private String _url;
70
71 }