01: /*
02: * $Id: HtmlBodyContainer.java 460307 2006-04-17 17:50:44Z jdonnerstag $
03: * $Revision: 460307 $ $Date: 2006-04-17 19:50:44 +0200 (Mon, 17 Apr 2006) $
04: *
05: * ==============================================================================
06: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
07: * use this file except in compliance with the License. You may obtain a copy of
08: * the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.markup.html.internal;
19:
20: import wicket.Component;
21: import wicket.markup.html.WebMarkupContainer;
22:
23: /**
24: * This is basically a transparent WebMarkupContainer with the ability to get
25: * the markup stream positioned correctly where the component begins from the
26: * parent (page) container.
27: * <p>
28: * It is transparent in the sense that all requests to access a child component
29: * are forwarded to the parent (page) container.
30: * <p>
31: * Because this container is usually automatically created, it can accessed by
32: * WebPage.getBodyContainer().
33: * <p>
34: * Though it is automatically created it may be replaced by adding you own
35: * Component with id == BodyOnLoadHandler.BODY_ID to the Page.
36: * <p>
37: * Components and Behaviors which wish to modify e.g. the body onLoad attribute
38: * may attach an AttributeModifier by means of <code>addOnLoadModifier()</code>
39: * or <code>add(new AttributeModifier())</code>.
40: *
41: * @author Juergen Donnerstag
42: */
43: public class HtmlBodyContainer extends WebMarkupContainer {
44: private static final long serialVersionUID = 1L;
45:
46: /**
47: * Construct
48: *
49: * @see Component#Component(String)
50: */
51: public HtmlBodyContainer(final String id) {
52: super (id);
53: }
54:
55: /**
56: * @see wicket.MarkupContainer#isTransparentResolver()
57: */
58: public boolean isTransparentResolver() {
59: return true;
60: }
61: }
|