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: EmbeddedWebBrowser.java 4528 2010-09-17 19:19:44Z 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/EmbeddedWebBrowser.java $ 18 */ 19 package com.hack23.cia.web.impl.ui.page.common; 20 21 import com.vaadin.terminal.ExternalResource; 22 import com.vaadin.ui.Embedded; 23 import com.vaadin.ui.VerticalLayout; 24 25 /** 26 * The Class EmbeddedWebBrowser. 27 */ 28 public class EmbeddedWebBrowser extends VerticalLayout { 29 30 /** The Constant serialVersionUID. */ 31 private static final long serialVersionUID = 1L; 32 33 /** 34 * Instantiates a new embedded web browser. 35 * 36 * @param title 37 * the title 38 * @param url 39 * the url 40 */ 41 public EmbeddedWebBrowser(final String title, final String url) { 42 super(); 43 final Embedded embedded = new Embedded(title, new ExternalResource( 44 url)); 45 embedded.setType(Embedded.TYPE_BROWSER); 46 addComponent(embedded); 47 embedded.setSizeFull(); 48 } 49 }