001
014
015 package com.liferay.taglib.aui;
016
017 import com.liferay.taglib.util.IncludeTag;
018
019 import javax.servlet.http.HttpServletRequest;
020
021
026 public class ATag extends IncludeTag {
027
028 public void setCssClass(String cssClass) {
029 _cssClass = cssClass;
030 }
031
032 public void setHref(String href) {
033 _href = href;
034 }
035
036 public void setId(String id) {
037 _id = id;
038 }
039
040 public void setLabel(String label) {
041 _label = label;
042 }
043
044 public void setLang(String lang) {
045 _lang = lang;
046 }
047
048 public void setTarget(String target) {
049 _target = target;
050 }
051
052 protected void cleanUp() {
053 _cssClass = null;
054 _href = null;
055 _id = null;
056 _label = null;
057 _lang = null;
058 _target = null;
059 }
060
061 protected String getEndPage() {
062 return _END_PAGE;
063 }
064
065 protected String getStartPage() {
066 return _START_PAGE;
067 }
068
069 protected boolean isCleanUpSetAttributes() {
070 return _CLEAN_UP_SET_ATTRIBUTES;
071 }
072
073 protected boolean isTrimNewLines() {
074 return _TRIM_NEW_LINES;
075 }
076
077 protected void setAttributes(HttpServletRequest request) {
078 request.setAttribute("aui:a:cssClass", _cssClass);
079 request.setAttribute("aui:a:dynamicAttributes", getDynamicAttributes());
080 request.setAttribute("aui:a:href", _href);
081 request.setAttribute("aui:a:id", _id);
082 request.setAttribute("aui:a:label", _label);
083 request.setAttribute("aui:a:lang", _lang);
084 request.setAttribute("aui:a:target", _target);
085 }
086
087 private static final boolean _CLEAN_UP_SET_ATTRIBUTES = true;
088
089 private static final boolean _TRIM_NEW_LINES = true;
090
091 private static final String _END_PAGE =
092 "/html/taglib/aui/a/end.jsp";
093
094 private static final String _START_PAGE =
095 "/html/taglib/aui/a/start.jsp";
096
097 private String _cssClass;
098 private String _href;
099 private String _id;
100 private String _label;
101 private String _lang;
102 private String _target;
103
104 }