01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/osp/tags/sakai_2-4-1/jsf/widgets/src/java/org/theospi/jsf/component/XHeaderDrawerComponent.java $
03: * $Id: XHeaderDrawerComponent.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.jsf.component;
21:
22: import java.util.ArrayList;
23: import java.util.List;
24:
25: import javax.faces.component.UIOutput;
26:
27: import org.sakaiproject.jsf.model.InitObjectContainer;
28:
29: public class XHeaderDrawerComponent extends UIOutput implements
30: InitObjectContainer {
31:
32: private String divId = null;
33: private List initScripts = null;
34:
35: /**
36: * Constructor-
37: * Indicates the component that this class is linked to
38: *
39: */
40: public XHeaderDrawerComponent() {
41: super ();
42: setInitScripts(new ArrayList());
43: this .setRendererType("org.theospi.XHeaderDrawer");
44: }
45:
46: public void setDivId(String inDivId) {
47: divId = inDivId;
48: }
49:
50: public String getDivId() {
51: return divId;
52: }
53:
54: public void addInitScript(String script) {
55: getInitScripts().add(script);
56: }
57:
58: public List getInitScripts() {
59: return initScripts;
60: }
61:
62: public void setInitScripts(List initScripts) {
63: this.initScripts = initScripts;
64: }
65:
66: }
|