001    /**
002     * Copyright (c) 2000-2013 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.ddm.base;
016    
017    import javax.servlet.http.HttpServletRequest;
018    import javax.servlet.jsp.JspException;
019    
020    /**
021     * @author Bruno Basto
022     * @generated
023     */
024    public class BaseHTMLFieldTag extends com.liferay.taglib.util.IncludeTag {
025    
026            @Override
027            public int doStartTag() throws JspException {
028                    setAttributeNamespace(_ATTRIBUTE_NAMESPACE);
029    
030                    return super.doStartTag();
031            }
032    
033            public long getClassNameId() {
034                    return _classNameId;
035            }
036    
037            public long getClassPK() {
038                    return _classPK;
039            }
040    
041            public com.liferay.portlet.dynamicdatamapping.storage.Field getField() {
042                    return _field;
043            }
044    
045            public java.lang.String getFieldsNamespace() {
046                    return _fieldsNamespace;
047            }
048    
049            public boolean getReadOnly() {
050                    return _readOnly;
051            }
052    
053            public boolean getRepeatable() {
054                    return _repeatable;
055            }
056    
057            public java.util.Locale getRequestedLocale() {
058                    return _requestedLocale;
059            }
060    
061            public void setClassNameId(long classNameId) {
062                    _classNameId = classNameId;
063    
064                    setScopedAttribute("classNameId", classNameId);
065            }
066    
067            public void setClassPK(long classPK) {
068                    _classPK = classPK;
069    
070                    setScopedAttribute("classPK", classPK);
071            }
072    
073            public void setField(com.liferay.portlet.dynamicdatamapping.storage.Field field) {
074                    _field = field;
075    
076                    setScopedAttribute("field", field);
077            }
078    
079            public void setFieldsNamespace(java.lang.String fieldsNamespace) {
080                    _fieldsNamespace = fieldsNamespace;
081    
082                    setScopedAttribute("fieldsNamespace", fieldsNamespace);
083            }
084    
085            public void setReadOnly(boolean readOnly) {
086                    _readOnly = readOnly;
087    
088                    setScopedAttribute("readOnly", readOnly);
089            }
090    
091            public void setRepeatable(boolean repeatable) {
092                    _repeatable = repeatable;
093    
094                    setScopedAttribute("repeatable", repeatable);
095            }
096    
097            public void setRequestedLocale(java.util.Locale requestedLocale) {
098                    _requestedLocale = requestedLocale;
099    
100                    setScopedAttribute("requestedLocale", requestedLocale);
101            }
102    
103            @Override
104            protected void cleanUp() {
105                    super.cleanUp();
106    
107                    _classNameId = 0;
108                    _classPK = 0;
109                    _field = null;
110                    _fieldsNamespace = null;
111                    _readOnly = false;
112                    _repeatable = true;
113                    _requestedLocale = null;
114            }
115    
116            @Override
117            protected String getEndPage() {
118                    return _END_PAGE;
119            }
120    
121            @Override
122            protected String getStartPage() {
123                    return _START_PAGE;
124            }
125    
126            @Override
127            protected void setAttributes(HttpServletRequest request) {
128                    setNamespacedAttribute(request, "classNameId", _classNameId);
129                    setNamespacedAttribute(request, "classPK", _classPK);
130                    setNamespacedAttribute(request, "field", _field);
131                    setNamespacedAttribute(request, "fieldsNamespace", _fieldsNamespace);
132                    setNamespacedAttribute(request, "readOnly", _readOnly);
133                    setNamespacedAttribute(request, "repeatable", _repeatable);
134                    setNamespacedAttribute(request, "requestedLocale", _requestedLocale);
135            }
136    
137            protected static final String _ATTRIBUTE_NAMESPACE = "ddm:html-field:";
138    
139            private static final String _END_PAGE =
140                    "/html/taglib/ddm/html_field/end.jsp";
141    
142            private static final String _START_PAGE =
143                    "/html/taglib/ddm/html_field/start.jsp";
144    
145            private long _classNameId = 0;
146            private long _classPK = 0;
147            private com.liferay.portlet.dynamicdatamapping.storage.Field _field = null;
148            private java.lang.String _fieldsNamespace = null;
149            private boolean _readOnly = false;
150            private boolean _repeatable = true;
151            private java.util.Locale _requestedLocale = null;
152    
153    }