01: /**********************************************************************************
02: * $URL:https://source.sakaiproject.org/svn/osp/trunk/jsf/widgets/src/java/org/theospi/jsf/impl/DefaultComponentWrapper.java $
03: * $Id:DefaultComponentWrapper.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.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.impl;
21:
22: import java.io.StringWriter;
23:
24: import javax.faces.component.UIComponent;
25: import javax.faces.context.ResponseWriter;
26:
27: import org.theospi.jsf.intf.ComponentWrapper;
28: import org.theospi.jsf.intf.XmlTagHandler;
29:
30: /**
31: * Created by IntelliJ IDEA.
32: * User: John Ellis
33: * Date: Jan 3, 2006
34: * Time: 12:10:14 PM
35: * To change this template use File | Settings | File Templates.
36: */
37: public class DefaultComponentWrapper extends ComponentWrapper {
38:
39: private ResponseWriter writer;
40: private StringWriter buffer;
41:
42: public DefaultComponentWrapper(ComponentWrapper parent,
43: UIComponent component, XmlTagHandler handler) {
44: super (parent, component, handler);
45: }
46:
47: public ResponseWriter getWriter() {
48: return writer;
49: }
50:
51: public void setWriter(ResponseWriter writer) {
52: this .writer = writer;
53: }
54:
55: public StringWriter getBuffer() {
56: return buffer;
57: }
58:
59: public void setBuffer(StringWriter buffer) {
60: this.buffer = buffer;
61: }
62:
63: }
|