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 BaseTranslationManagerTag 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.util.Locale[] getAvailableLocales() {
037                    return _availableLocales;
038            }
039    
040            public java.lang.String getDefaultLanguageId() {
041                    return _defaultLanguageId;
042            }
043    
044            public java.lang.String getEditingLanguageId() {
045                    return _editingLanguageId;
046            }
047    
048            public java.lang.String getId() {
049                    return _id;
050            }
051    
052            public boolean getInitialize() {
053                    return _initialize;
054            }
055    
056            public boolean getReadOnly() {
057                    return _readOnly;
058            }
059    
060            public void setAvailableLocales(java.util.Locale[] availableLocales) {
061                    _availableLocales = availableLocales;
062    
063                    setScopedAttribute("availableLocales", availableLocales);
064            }
065    
066            public void setDefaultLanguageId(java.lang.String defaultLanguageId) {
067                    _defaultLanguageId = defaultLanguageId;
068    
069                    setScopedAttribute("defaultLanguageId", defaultLanguageId);
070            }
071    
072            public void setEditingLanguageId(java.lang.String editingLanguageId) {
073                    _editingLanguageId = editingLanguageId;
074    
075                    setScopedAttribute("editingLanguageId", editingLanguageId);
076            }
077    
078            public void setId(java.lang.String id) {
079                    _id = id;
080    
081                    setScopedAttribute("id", id);
082            }
083    
084            public void setInitialize(boolean initialize) {
085                    _initialize = initialize;
086    
087                    setScopedAttribute("initialize", initialize);
088            }
089    
090            public void setReadOnly(boolean readOnly) {
091                    _readOnly = readOnly;
092    
093                    setScopedAttribute("readOnly", readOnly);
094            }
095    
096            @Override
097            protected void cleanUp() {
098                    _availableLocales = null;
099                    _defaultLanguageId = null;
100                    _editingLanguageId = null;
101                    _id = null;
102                    _initialize = true;
103                    _readOnly = false;
104            }
105    
106            @Override
107            protected String getPage() {
108                    return _PAGE;
109            }
110    
111            @Override
112            protected void setAttributes(HttpServletRequest request) {
113                    setNamespacedAttribute(request, "availableLocales", _availableLocales);
114                    setNamespacedAttribute(request, "defaultLanguageId", _defaultLanguageId);
115                    setNamespacedAttribute(request, "editingLanguageId", _editingLanguageId);
116                    setNamespacedAttribute(request, "id", _id);
117                    setNamespacedAttribute(request, "initialize", _initialize);
118                    setNamespacedAttribute(request, "readOnly", _readOnly);
119            }
120    
121            protected static final String _ATTRIBUTE_NAMESPACE = "aui:translation-manager:";
122    
123            private static final String _PAGE =
124                    "/html/taglib/aui/translation_manager/page.jsp";
125    
126            private java.util.Locale[] _availableLocales = null;
127            private java.lang.String _defaultLanguageId = null;
128            private java.lang.String _editingLanguageId = null;
129            private java.lang.String _id = null;
130            private boolean _initialize = true;
131            private boolean _readOnly = false;
132    
133    }