01: /*
02: * $Id: WebMarkupContainer.java 459487 2006-02-23 20:41:28Z jdonnerstag $
03: * $Revision: 459487 $ $Date: 2006-02-23 21:41:28 +0100 (Thu, 23 Feb 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;
19:
20: import wicket.Component;
21: import wicket.MarkupContainer;
22: import wicket.model.IModel;
23:
24: /**
25: * A container of HTML markup and components. It is very similar to the base
26: * class MarkupContainer, except that the markup type is defined to be HTML.
27: *
28: * @author Jonathan Locke
29: * @author Juergen Donnerstag
30: */
31: public class WebMarkupContainer extends MarkupContainer {
32: private static final long serialVersionUID = 1L;
33:
34: /**
35: * @see Component#Component(String)
36: */
37: public WebMarkupContainer(final String id) {
38: super (id);
39: }
40:
41: /**
42: * @see wicket.Component#Component(String, IModel)
43: */
44: public WebMarkupContainer(final String id, IModel model) {
45: super (id, model);
46: }
47:
48: /**
49: * Gets the markup type for this component.
50: *
51: * @return Markup type of HTML
52: */
53: public final String getMarkupType() {
54: return "html";
55: }
56:
57: /**
58: * A convinience method to return the WebPage. Same as getPage().
59: *
60: * @return WebPage
61: */
62: public final WebPage getWebPage() {
63: return (WebPage) getPage();
64: }
65: }
|