| ButtonRowTag.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.aui;
16
17 import com.liferay.taglib.util.IncludeTag;
18
19 import javax.servlet.http.HttpServletRequest;
20
21 /**
22 * <a href="ButtonRowTag.java.html"><b><i>View Source</i></b></a>
23 *
24 * @author Julio Camarero
25 * @author Jorge Ferrer
26 * @author Brian Wing Shun Chan
27 */
28 public class ButtonRowTag extends IncludeTag {
29
30 public void setCssClass(String cssClass) {
31 _cssClass = cssClass;
32 }
33
34 protected void cleanUp() {
35 _cssClass = null;
36 }
37
38 protected String getEndPage() {
39 return _END_PAGE;
40 }
41
42 protected String getStartPage() {
43 return _START_PAGE;
44 }
45
46 protected boolean isCleanUpSetAttributes() {
47 return _CLEAN_UP_SET_ATTRIBUTES;
48 }
49
50 protected void setAttributes(HttpServletRequest request) {
51 request.setAttribute("aui:button-row:cssClass", _cssClass);
52 request.setAttribute(
53 "aui:button-row:dynamicAttributes", getDynamicAttributes());
54 }
55
56 private static final boolean _CLEAN_UP_SET_ATTRIBUTES = true;
57
58 private static final String _END_PAGE =
59 "/html/taglib/aui/button_row/end.jsp";
60
61 private static final String _START_PAGE =
62 "/html/taglib/aui/button_row/start.jsp";
63
64 private String _cssClass;
65
66 }