001    /**
002     * Copyright (c) 2000-2012 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 class BaseOptionTag 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.String getCssClass() {
037                    return _cssClass;
038            }
039    
040            public java.util.Map<java.lang.String, java.lang.Object> getData() {
041                    return _data;
042            }
043    
044            public boolean getDisabled() {
045                    return _disabled;
046            }
047    
048            public java.lang.Object getLabel() {
049                    return _label;
050            }
051    
052            public boolean getSelected() {
053                    return _selected;
054            }
055    
056            public java.lang.String getStyle() {
057                    return _style;
058            }
059    
060            public java.lang.Object getValue() {
061                    return _value;
062            }
063    
064            public void setCssClass(java.lang.String cssClass) {
065                    _cssClass = cssClass;
066    
067                    setScopedAttribute("cssClass", cssClass);
068            }
069    
070            public void setData(java.util.Map<java.lang.String, java.lang.Object> data) {
071                    _data = data;
072    
073                    setScopedAttribute("data", data);
074            }
075    
076            public void setDisabled(boolean disabled) {
077                    _disabled = disabled;
078    
079                    setScopedAttribute("disabled", disabled);
080            }
081    
082            public void setLabel(java.lang.Object label) {
083                    _label = label;
084    
085                    setScopedAttribute("label", label);
086            }
087    
088            public void setSelected(boolean selected) {
089                    _selected = selected;
090    
091                    setScopedAttribute("selected", selected);
092            }
093    
094            public void setStyle(java.lang.String style) {
095                    _style = style;
096    
097                    setScopedAttribute("style", style);
098            }
099    
100            public void setValue(java.lang.Object value) {
101                    _value = value;
102    
103                    setScopedAttribute("value", value);
104            }
105    
106            @Override
107            protected void cleanUp() {
108                    _cssClass = null;
109                    _data = null;
110                    _disabled = false;
111                    _label = null;
112                    _selected = false;
113                    _style = null;
114                    _value = null;
115            }
116    
117            @Override
118            protected String getEndPage() {
119                    return _END_PAGE;
120            }
121    
122            @Override
123            protected String getStartPage() {
124                    return _START_PAGE;
125            }
126    
127            @Override
128            protected void setAttributes(HttpServletRequest request) {
129                    setNamespacedAttribute(request, "cssClass", _cssClass);
130                    setNamespacedAttribute(request, "data", _data);
131                    setNamespacedAttribute(request, "disabled", _disabled);
132                    setNamespacedAttribute(request, "label", _label);
133                    setNamespacedAttribute(request, "selected", _selected);
134                    setNamespacedAttribute(request, "style", _style);
135                    setNamespacedAttribute(request, "value", _value);
136            }
137    
138            protected static final String _ATTRIBUTE_NAMESPACE = "aui:option:";
139    
140            private static final String _END_PAGE =
141                    "/html/taglib/aui/option/end.jsp";
142    
143            private static final String _START_PAGE =
144                    "/html/taglib/aui/option/start.jsp";
145    
146            private java.lang.String _cssClass = null;
147            private java.util.Map<java.lang.String, java.lang.Object> _data = null;
148            private boolean _disabled = false;
149            private java.lang.Object _label = null;
150            private boolean _selected = false;
151            private java.lang.String _style = null;
152            private java.lang.Object _value = null;
153    
154    }