01: /*
02: * $Id: WebComponent.java 458856 2006-01-27 13:26:30Z jdonnerstag $ $Revision:
03: * 1.15 $ $Date: 2006-01-27 14:26:30 +0100 (Fri, 27 Jan 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.markup.MarkupStream;
22: import wicket.model.IModel;
23:
24: /**
25: * Base class for simple HTML components which do not hold nested components. If
26: * you need to support nested components, see WebMarkupContainer or use Panel if
27: * the component will have its own associated markup.
28: *
29: * @see wicket.markup.html.WebMarkupContainer
30: *
31: * @author Jonathan Locke
32: * @author Juergen Donnerstag
33: * @author Eelco Hillenius
34: */
35: public class WebComponent extends Component {
36: private static final long serialVersionUID = 1L;
37:
38: /**
39: * @see Component#Component(String)
40: */
41: public WebComponent(final String id) {
42: super (id);
43: }
44:
45: /**
46: * @see Component#Component(String, IModel)
47: */
48: public WebComponent(final String id, final IModel model) {
49: super (id, model);
50: }
51:
52: /**
53: *
54: * @see wicket.Component#onRender(wicket.markup.MarkupStream)
55: */
56: protected void onRender(final MarkupStream markupStream) {
57: renderComponent(markupStream);
58: }
59: }
|