01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/osp/trunk/jsf/widgets/src/java/org/theospi/jsf/tag/ScrollableAreaTag.java $
03: * $Id: ScrollableAreaTag.java 10835 2006-06-17 03:25:03Z lance@indiana.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.theospi.portfolio.help.jsf.tag;
21:
22: import javax.faces.component.UIComponent;
23: import javax.faces.webapp.UIComponentTag;
24:
25: import org.sakaiproject.jsf.util.TagUtil;
26:
27: public class GlossaryTag extends UIComponentTag {
28: private String hover = null;
29: private String link = null;
30: private String firstOnly = null;
31:
32: public String getComponentType() {
33: return "org.theospi.help.Glossary";
34: }
35:
36: public String getRendererType() {
37: return "org.theospi.help.Glossary";
38: }
39:
40: public String getHover() {
41: return hover;
42: }
43:
44: public String getLink() {
45: return link;
46: }
47:
48: public String getFirstOnly() {
49: return firstOnly;
50: }
51:
52: /**
53: *
54: * @param component places the attributes in the component
55: */
56: protected void setProperties(UIComponent component) {
57: super .setProperties(component);
58: TagUtil.setString(component, "hover", hover);
59: TagUtil.setString(component, "link", link);
60: TagUtil.setString(component, "firstOnly", firstOnly);
61: }
62:
63: public void setHover(String string) {
64: hover = string;
65: }
66:
67: public void setLink(String string) {
68: link = string;
69: }
70:
71: public void setFirstOnly(String string) {
72: firstOnly = string;
73: }
74: }
|