001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 boolean getLast() {
049                    return _last;
050            }
051    
052            public void setColumnWidth(int columnWidth) {
053                    _columnWidth = columnWidth;
054    
055                    setScopedAttribute("columnWidth", columnWidth);
056            }
057    
058            public void setCssClass(java.lang.String cssClass) {
059                    _cssClass = cssClass;
060    
061                    setScopedAttribute("cssClass", cssClass);
062            }
063    
064            public void setFirst(boolean first) {
065                    _first = first;
066    
067                    setScopedAttribute("first", first);
068            }
069    
070            public void setLast(boolean last) {
071                    _last = last;
072    
073                    setScopedAttribute("last", last);
074            }
075    
076            @Override
077            protected void cleanUp() {
078                    _columnWidth = 0;
079                    _cssClass = null;
080                    _first = false;
081                    _last = false;
082            }
083    
084            @Override
085            protected String getEndPage() {
086                    return _END_PAGE;
087            }
088    
089            @Override
090            protected String getStartPage() {
091                    return _START_PAGE;
092            }
093    
094            @Override
095            protected void setAttributes(HttpServletRequest request) {
096                    setNamespacedAttribute(request, "columnWidth", _columnWidth);
097                    setNamespacedAttribute(request, "cssClass", _cssClass);
098                    setNamespacedAttribute(request, "first", _first);
099                    setNamespacedAttribute(request, "last", _last);
100            }
101    
102            protected static final String _ATTRIBUTE_NAMESPACE = "aui:column:";
103    
104            private static final String _END_PAGE =
105                    "/html/taglib/aui/column/end.jsp";
106    
107            private static final String _START_PAGE =
108                    "/html/taglib/aui/column/start.jsp";
109    
110            private int _columnWidth = 0;
111            private java.lang.String _cssClass = null;
112            private boolean _first = false;
113            private boolean _last = false;
114    
115    }