01: /*
02: * $Id: Home.java 462276 2006-09-16 21:51:33Z ehillenius $ $Revision: 462276 $ $Date:
03: * 2005-12-11 00:38:17 +0100 (So, 11 Dez 2005) $
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.examples.niceurl;
19:
20: import wicket.examples.WicketExamplePage;
21: import wicket.examples.niceurl.mounted.Page3;
22: import wicket.examples.niceurl.mounted.Page4;
23: import wicket.examples.niceurl.mounted.Page5;
24: import wicket.markup.html.link.BookmarkablePageLink;
25:
26: /**
27: * Has links to bookmarkable pages with 'nice' uls.
28: *
29: * @author Eelco Hillenius
30: */
31: public class Home extends WicketExamplePage {
32: /**
33: * Construct.
34: */
35: public Home() {
36: // references to single mounts
37: add(new BookmarkablePageLink("page1Link", Page1.class));
38: add(new BookmarkablePageLink("page2Link", Page2.class));
39: add(new BookmarkablePageLink("page2LinkQP", Page2QP.class));
40:
41: // references to package mounts
42: add(new BookmarkablePageLink("page3Link", Page3.class));
43: add(new BookmarkablePageLink("page4Link", Page4.class));
44: add(new BookmarkablePageLink("page5Link", Page5.class));
45: }
46:
47: /**
48: * @see wicket.Component#isVersioned()
49: */
50: public boolean isVersioned() {
51: return false;
52: }
53: }
|