1 /*
2 * Copyright 2010 James Pether Sörling
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * $Id: Page.java 5436 2011-04-26 18:25:22Z pether $
17 * $HeadURL: https://cia.svn.sourceforge.net/svnroot/cia/trunk/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/page/common/Page.java $
18 */
19 package com.hack23.cia.web.impl.ui.page.common;
20
21 import org.slf4j.Logger;
22
23 import com.vaadin.ui.Component;
24
25 /**
26 * The Interface Page.
27 */
28 public interface Page {
29
30 /**
31 * Gets the logger.
32 *
33 * @return the logger
34 */
35 Logger getLogger();
36
37 /**
38 * Gets the page title.
39 *
40 * @return the page title
41 */
42 String getPageTitle();
43
44 /**
45 * Navigate to.
46 *
47 * @param page
48 * the page
49 */
50 void navigateTo(Class<? extends Component> page);
51
52 /**
53 * Navigate to.
54 *
55 * @param page
56 * the page
57 * @param params
58 * the params
59 */
60 void navigateTo(Class<? extends Component> page,String params);
61 }