View Javadoc

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: DashBoardPage.java 5463 2011-05-10 20:43:14Z pether $
17   *  $HeadURL: https://cia.svn.sourceforge.net/svnroot/cia/trunk/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/page/admin/DashBoardPage.java $
18  */
19  package com.hack23.cia.web.impl.ui.page.admin;
20  
21  import org.vaadin.navigator7.Page;
22  
23  import com.hack23.cia.web.impl.ui.page.common.EmbeddedWebBrowser;
24  
25  /**
26   * The Class DashBoardPage.
27   */
28  @Page(uriName = "dashboard",crawlable=true)
29  @SuppressWarnings("serial")
30  public final class DashBoardPage extends AbstractAdminPage {
31  
32  	/** The content. */
33  	private final EmbeddedWebBrowser content = new EmbeddedWebBrowser("Statistics of JavaMelody monitoring","../monitoring");
34  
35  	/**
36  	 * Instantiates a new dash board page.
37  	 */
38  	public DashBoardPage() {
39  		super();
40  		content.setSizeFull();
41  		content.setMargin(true);
42  		content.setSpacing(true);
43  		setCompositionRoot(content);
44  		setHeight(getScreenHeight());
45  
46  
47  	}
48  
49  	/* (non-Javadoc)
50  	 * @see com.hack23.cia.web.impl.ui.page.common.AbstractPage#getPageTitle()
51  	 */
52  	@Override
53  	public String getPageTitle() {
54  		return "";
55  	}
56  
57  }