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 BaseAlertTag 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 boolean getAnimated() {
037                    return _animated;
038            }
039    
040            public boolean getCloseable() {
041                    return _closeable;
042            }
043    
044            public java.lang.String getCssClass() {
045                    return _cssClass;
046            }
047    
048            public boolean getDestroyOnHide() {
049                    return _destroyOnHide;
050            }
051    
052            public java.lang.Object getDuration() {
053                    return _duration;
054            }
055    
056            public java.lang.String getId() {
057                    return _id;
058            }
059    
060            public java.lang.String getType() {
061                    return _type;
062            }
063    
064            public void setAnimated(boolean animated) {
065                    _animated = animated;
066    
067                    setScopedAttribute("animated", animated);
068            }
069    
070            public void setCloseable(boolean closeable) {
071                    _closeable = closeable;
072    
073                    setScopedAttribute("closeable", closeable);
074            }
075    
076            public void setCssClass(java.lang.String cssClass) {
077                    _cssClass = cssClass;
078    
079                    setScopedAttribute("cssClass", cssClass);
080            }
081    
082            public void setDestroyOnHide(boolean destroyOnHide) {
083                    _destroyOnHide = destroyOnHide;
084    
085                    setScopedAttribute("destroyOnHide", destroyOnHide);
086            }
087    
088            public void setDuration(java.lang.Object duration) {
089                    _duration = duration;
090    
091                    setScopedAttribute("duration", duration);
092            }
093    
094            public void setId(java.lang.String id) {
095                    _id = id;
096    
097                    setScopedAttribute("id", id);
098            }
099    
100            public void setType(java.lang.String type) {
101                    _type = type;
102    
103                    setScopedAttribute("type", type);
104            }
105    
106            @Override
107            protected void cleanUp() {
108                    super.cleanUp();
109    
110                    _animated = false;
111                    _closeable = true;
112                    _cssClass = null;
113                    _destroyOnHide = false;
114                    _duration = 0.15;
115                    _id = null;
116                    _type = "info";
117            }
118    
119            @Override
120            protected String getEndPage() {
121                    return _END_PAGE;
122            }
123    
124            @Override
125            protected String getStartPage() {
126                    return _START_PAGE;
127            }
128    
129            @Override
130            protected void setAttributes(HttpServletRequest request) {
131                    setNamespacedAttribute(request, "animated", _animated);
132                    setNamespacedAttribute(request, "closeable", _closeable);
133                    setNamespacedAttribute(request, "cssClass", _cssClass);
134                    setNamespacedAttribute(request, "destroyOnHide", _destroyOnHide);
135                    setNamespacedAttribute(request, "duration", _duration);
136                    setNamespacedAttribute(request, "id", _id);
137                    setNamespacedAttribute(request, "type", _type);
138            }
139    
140            protected static final String _ATTRIBUTE_NAMESPACE = "aui:alert:";
141    
142            private static final String _END_PAGE =
143                    "/html/taglib/aui/alert/end.jsp";
144    
145            private static final String _START_PAGE =
146                    "/html/taglib/aui/alert/start.jsp";
147    
148            private boolean _animated = false;
149            private boolean _closeable = true;
150            private java.lang.String _cssClass = null;
151            private boolean _destroyOnHide = false;
152            private java.lang.Object _duration = 0.15;
153            private java.lang.String _id = null;
154            private java.lang.String _type = "info";
155    
156    }