View Javadoc

1   /*
2    Wotonomy: OpenStep design patterns for pure Java applications.
3    Copyright (C) 2000 Blacksmith, Inc.
4   
5    This library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
9   
10   This library is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   Lesser General Public License for more details.
14  
15   You should have received a copy of the GNU Lesser General Public
16   License along with this library; if not, see http://www.gnu.org
17   */
18  
19  package net.wotonomy.web;
20  
21  import net.wotonomy.foundation.NSDictionary;
22  
23  /***
24   * Used to include a component's content inside another component. This way, you can create reusable components
25   * with content that surrounds the component it's in. In reality all it does is forward the appendToResponse
26   * method to the WOElement containing the HTML between the WEBOBJECT tags that define this element.
27   * @author michael@mpowers.net
28   * @author $Author: cgruber $
29   * @version $Revision: 905 $
30   */
31  public class WOComponentContent extends WODynamicElement {
32  
33      public WOComponentContent() {
34          super();
35      }
36  
37      public WOComponentContent(String n, NSDictionary m, WOElement t) {
38          super(n, m, t);
39      }
40  
41      public void appendToResponse(WOResponse r, WOContext c) {
42          c.component().rootElement.appendToResponse(r, c);
43      }
44  
45  }