001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.taglib.aui.base;
016    
017    import javax.servlet.http.HttpServletRequest;
018    import javax.servlet.jsp.JspException;
019    
020    /**
021     * @author Eduardo Lundgren
022     * @author Bruno Basto
023     * @author Nathan Cavanaugh
024     * @author Julio Camarero
025     * @generated
026     */
027    public abstract class BaseWorkflowStatusTag extends com.liferay.taglib.util.IncludeTag {
028    
029            @Override
030            public int doStartTag() throws JspException {
031                    setAttributeNamespace(_ATTRIBUTE_NAMESPACE);
032    
033                    return super.doStartTag();
034            }
035    
036            public java.lang.Object getBean() {
037                    return _bean;
038            }
039    
040            public java.lang.String getHelpMessage() {
041                    return _helpMessage;
042            }
043    
044            public java.lang.String getId() {
045                    return _id;
046            }
047    
048            public java.lang.String getMarkupView() {
049                    return _markupView;
050            }
051    
052            public java.lang.Class<?> getModel() {
053                    return _model;
054            }
055    
056            public boolean getShowIcon() {
057                    return _showIcon;
058            }
059    
060            public boolean getShowLabel() {
061                    return _showLabel;
062            }
063    
064            public java.lang.Integer getStatus() {
065                    return _status;
066            }
067    
068            public java.lang.String getStatusMessage() {
069                    return _statusMessage;
070            }
071    
072            public java.lang.String getVersion() {
073                    return _version;
074            }
075    
076            public void setBean(java.lang.Object bean) {
077                    _bean = bean;
078    
079                    setScopedAttribute("bean", bean);
080            }
081    
082            public void setHelpMessage(java.lang.String helpMessage) {
083                    _helpMessage = helpMessage;
084    
085                    setScopedAttribute("helpMessage", helpMessage);
086            }
087    
088            public void setId(java.lang.String id) {
089                    _id = id;
090    
091                    setScopedAttribute("id", id);
092            }
093    
094            public void setMarkupView(java.lang.String markupView) {
095                    _markupView = markupView;
096    
097                    setScopedAttribute("markupView", markupView);
098            }
099    
100            public void setModel(java.lang.Class<?> model) {
101                    _model = model;
102    
103                    setScopedAttribute("model", model);
104            }
105    
106            public void setShowIcon(boolean showIcon) {
107                    _showIcon = showIcon;
108    
109                    setScopedAttribute("showIcon", showIcon);
110            }
111    
112            public void setShowLabel(boolean showLabel) {
113                    _showLabel = showLabel;
114    
115                    setScopedAttribute("showLabel", showLabel);
116            }
117    
118            public void setStatus(java.lang.Integer status) {
119                    _status = status;
120    
121                    setScopedAttribute("status", status);
122            }
123    
124            public void setStatusMessage(java.lang.String statusMessage) {
125                    _statusMessage = statusMessage;
126    
127                    setScopedAttribute("statusMessage", statusMessage);
128            }
129    
130            public void setVersion(java.lang.String version) {
131                    _version = version;
132    
133                    setScopedAttribute("version", version);
134            }
135    
136            @Override
137            protected void cleanUp() {
138                    super.cleanUp();
139    
140                    _bean = null;
141                    _helpMessage = null;
142                    _id = null;
143                    _markupView = null;
144                    _model = null;
145                    _showIcon = true;
146                    _showLabel = true;
147                    _status = null;
148                    _statusMessage = null;
149                    _version = null;
150            }
151    
152            @Override
153            protected String getPage() {
154                    return _PAGE;
155            }
156    
157            @Override
158            protected void setAttributes(HttpServletRequest request) {
159                    setNamespacedAttribute(request, "bean", _bean);
160                    setNamespacedAttribute(request, "helpMessage", _helpMessage);
161                    setNamespacedAttribute(request, "id", _id);
162                    setNamespacedAttribute(request, "markupView", _markupView);
163                    setNamespacedAttribute(request, "model", _model);
164                    setNamespacedAttribute(request, "showIcon", _showIcon);
165                    setNamespacedAttribute(request, "showLabel", _showLabel);
166                    setNamespacedAttribute(request, "status", _status);
167                    setNamespacedAttribute(request, "statusMessage", _statusMessage);
168                    setNamespacedAttribute(request, "version", _version);
169            }
170    
171            protected static final String _ATTRIBUTE_NAMESPACE = "aui:workflow-status:";
172    
173            private static final String _PAGE =
174                    "/html/taglib/aui/workflow_status/page.jsp";
175    
176            private java.lang.Object _bean = null;
177            private java.lang.String _helpMessage = null;
178            private java.lang.String _id = null;
179            private java.lang.String _markupView = null;
180            private java.lang.Class<?> _model = null;
181            private boolean _showIcon = true;
182            private boolean _showLabel = true;
183            private java.lang.Integer _status = null;
184            private java.lang.String _statusMessage = null;
185            private java.lang.String _version = null;
186    
187    }