| InputRepeatTag.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 2.1 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 * details.
13 */
14
15 package com.liferay.taglib.ui;
16
17 import com.liferay.portlet.calendar.model.CalEvent;
18 import com.liferay.taglib.util.IncludeTag;
19
20 import javax.servlet.http.HttpServletRequest;
21
22 /**
23 * <a href="InputRepeatTag.java.html"><b><i>View Source</i></b></a>
24 *
25 * @author Bruno Farache
26 * @author Julio Camarero
27 */
28 public class InputRepeatTag extends IncludeTag {
29
30 public void setCssClass(String cssClass) {
31 _cssClass = cssClass;
32 }
33
34 public void setEvent(CalEvent event) {
35 _event = event;
36 }
37
38 protected void cleanUp() {
39 _cssClass = null;
40 _event = null;
41 }
42
43 protected String getPage() {
44 return _PAGE;
45 }
46
47 protected void setAttributes(HttpServletRequest request) {
48 request.setAttribute("liferay-ui:input-repeat:cssClass", _cssClass);
49 request.setAttribute("liferay-ui:input-repeat:event", _event);
50 }
51
52 private static final String _PAGE =
53 "/html/taglib/ui/input_repeat/page.jsp";
54
55 private String _cssClass;
56 private CalEvent _event;
57
58 }