01: /*
02: * $Id: WicketExamplePage.java 460265 2006-04-16 13:36:52Z jdonnerstag $ $Revision:
03: * 5110 $ $Date: 2006-04-16 15:36:52 +0200 (Sun, 16 Apr 2006) $
04: *
05: * ==================================================================== Licensed
06: * under the Apache License, Version 2.0 (the "License"); you may not use this
07: * file except in compliance with the License. You may obtain a copy of the
08: * 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.examples;
19:
20: import wicket.markup.html.WebPage;
21: import wicket.model.IModel;
22: import wicket.util.string.Strings;
23:
24: /**
25: * Base class for all example pages.
26: *
27: * @author Jonathan Locke
28: */
29: public class WicketExamplePage extends WebPage {
30: /**
31: * Constructor
32: */
33: public WicketExamplePage() {
34: this (null);
35: }
36:
37: /**
38: * Construct.
39: *
40: * @param model
41: */
42: public WicketExamplePage(IModel model) {
43: super (model);
44: final String packageName = getClass().getPackage().getName();
45: add(new WicketExampleHeader("mainNavigation", Strings
46: .afterLast(packageName, '.'), this ));
47: explain();
48: }
49:
50: /**
51: * Override base method to provide an explanation
52: */
53: protected void explain() {
54: }
55: }
|