001
014
015 package com.liferay.taglib.ui;
016
017 import com.liferay.taglib.util.IncludeTag;
018
019 import java.util.Map;
020
021 import javax.servlet.http.HttpServletRequest;
022
023
026 public class AppViewNavigationEntryTag extends IncludeTag {
027
028 @Override
029 public int doStartTag() {
030 return EVAL_BODY_INCLUDE;
031 }
032
033 public void setActionJsp(String actionJsp) {
034 _actionJsp = actionJsp;
035 }
036
037 public void setCssClass(String cssClass) {
038 _cssClass = cssClass;
039 }
040
041 public void setDataView(Map<String, Object> dataView) {
042 _dataView = dataView;
043 }
044
045 public void setEntryTitle(String entryTitle) {
046 _entryTitle = entryTitle;
047 }
048
049 public void setIconImage(String iconImage) {
050 _iconImage = iconImage;
051 }
052
053 public void setIconSrc(String iconSrc) {
054 _iconSrc = iconSrc;
055 }
056
057 public void setSelected(boolean selected) {
058 _selected = selected;
059 }
060
061 public void setViewURL(String viewURL) {
062 _viewURL = viewURL;
063 }
064
065 @Override
066 protected void cleanUp() {
067 _actionJsp = null;
068 _cssClass = "folder";
069 _dataView = null;
070 _entryTitle = null;
071 _iconImage = null;
072 _iconSrc = null;
073 _selected = false;
074 _viewURL = null;
075 }
076
077 @Override
078 protected String getPage() {
079 return _PAGE;
080 }
081
082 @Override
083 protected boolean isCleanUpSetAttributes() {
084 return _CLEAN_UP_SET_ATTRIBUTES;
085 }
086
087 @Override
088 protected void setAttributes(HttpServletRequest request) {
089 request.setAttribute(
090 "liferay-ui:app-view-navigation-entry:actionJsp", _actionJsp);
091 request.setAttribute(
092 "liferay-ui:app-view-navigation-entry:cssClass", _cssClass);
093 request.setAttribute(
094 "liferay-ui:app-view-navigation-entry:dataView", _dataView);
095 request.setAttribute(
096 "liferay-ui:app-view-navigation-entry:entryTitle", _entryTitle);
097 request.setAttribute(
098 "liferay-ui:app-view-navigation-entry:iconImage", _iconImage);
099 request.setAttribute(
100 "liferay-ui:app-view-navigation-entry:iconSrc", _iconSrc);
101 request.setAttribute(
102 "liferay-ui:app-view-navigation-entry:selected", _selected);
103 request.setAttribute(
104 "liferay-ui:app-view-navigation-entry:viewURL", _viewURL);
105 }
106
107 private static final boolean _CLEAN_UP_SET_ATTRIBUTES = true;
108
109 private static final String _PAGE =
110 "/html/taglib/ui/app_view_navigation_entry/page.jsp";
111
112 private String _actionJsp;
113 private String _cssClass = "folder";
114 private Map<String, Object> _dataView;
115 private String _entryTitle;
116 private String _iconImage;
117 private String _iconSrc;
118 private boolean _selected;
119 private String _viewURL;
120
121 }