001    /**
002     * Copyright (c) 2000-2013 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 BaseColumnTag 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 int getColumnWidth() {
037                    return _columnWidth;
038            }
039    
040            public java.lang.String getCssClass() {
041                    return _cssClass;
042            }
043    
044            public boolean getFirst() {
045                    return _first;
046            }
047    
048            public java.lang.String getId() {
049                    return _id;
050            }
051    
052            public boolean getLast() {
053                    return _last;
054            }
055    
056            public void setColumnWidth(int columnWidth) {
057                    _columnWidth = columnWidth;
058    
059                    setScopedAttribute("columnWidth", columnWidth);
060            }
061    
062            public void setCssClass(java.lang.String cssClass) {
063                    _cssClass = cssClass;
064    
065                    setScopedAttribute("cssClass", cssClass);
066            }
067    
068            public void setFirst(boolean first) {
069                    _first = first;
070    
071                    setScopedAttribute("first", first);
072            }
073    
074            public void setId(java.lang.String id) {
075                    _id = id;
076    
077                    setScopedAttribute("id", id);
078            }
079    
080            public void setLast(boolean last) {
081                    _last = last;
082    
083                    setScopedAttribute("last", last);
084            }
085    
086            @Override
087            protected void cleanUp() {
088                    _columnWidth = 0;
089                    _cssClass = null;
090                    _first = false;
091                    _id = null;
092                    _last = false;
093            }
094    
095            @Override
096            protected String getEndPage() {
097                    return _END_PAGE;
098            }
099    
100            @Override
101            protected String getStartPage() {
102                    return _START_PAGE;
103            }
104    
105            @Override
106            protected void setAttributes(HttpServletRequest request) {
107                    setNamespacedAttribute(request, "columnWidth", _columnWidth);
108                    setNamespacedAttribute(request, "cssClass", _cssClass);
109                    setNamespacedAttribute(request, "first", _first);
110                    setNamespacedAttribute(request, "id", _id);
111                    setNamespacedAttribute(request, "last", _last);
112            }
113    
114            protected static final String _ATTRIBUTE_NAMESPACE = "aui:column:";
115    
116            private static final String _END_PAGE =
117                    "/html/taglib/aui/column/end.jsp";
118    
119            private static final String _START_PAGE =
120                    "/html/taglib/aui/column/start.jsp";
121    
122            private int _columnWidth = 0;
123            private java.lang.String _cssClass = null;
124            private boolean _first = false;
125            private java.lang.String _id = null;
126            private boolean _last = false;
127    
128    }