List of usage examples for com.vaadin.ui Embedded setSizeFull
@Override public void setSizeFull()
From source file:eu.lod2.SameAs.java
License:Apache License
public SameAs(LOD2DemoState st) { // The internal state state = st;// www .j a va 2 s. c o m Embedded browser = new Embedded(); try { URL url = new URL("http://sameas.org"); browser = new Embedded("", new ExternalResource(url)); browser.setType(Embedded.TYPE_BROWSER); browser.setSizeFull(); //panel.addComponent(browser); } catch (MalformedURLException e) { e.printStackTrace(); } ; // The composition root MUST be set setCompositionRoot(browser); }
From source file:eu.lod2.Sigma.java
License:Apache License
public Sigma(LOD2DemoState st) { // The internal state state = st;// w w w. j a v a2s .c o m Embedded browser = new Embedded(); try { URL url = new URL(state.getHostName() + "/sigmaee"); browser = new Embedded("", new ExternalResource(url)); browser.setType(Embedded.TYPE_BROWSER); browser.setSizeFull(); //panel.addComponent(browser); } catch (MalformedURLException e) { e.printStackTrace(); } ; // The composition root MUST be set setCompositionRoot(browser); }
From source file:eu.lod2.Siren.java
License:Apache License
public Siren(LOD2DemoState st) { // The internal state state = st;//from w w w. j a va 2s . c om Embedded browser = new Embedded(); try { URL url = new URL(state.getHostName(false) + ":8080/siren"); browser = new Embedded("", new ExternalResource(url)); browser.setType(Embedded.TYPE_BROWSER); browser.setSizeFull(); //panel.addComponent(browser); } catch (MalformedURLException e) { e.printStackTrace(); } // The composition root MUST be set setCompositionRoot(browser); }
From source file:eu.lod2.SPARQLPoolParty.java
License:Apache License
public SPARQLPoolParty(LOD2DemoState st) { // The internal state state = st;// w w w .ja va 2s . c o m Embedded browser = new Embedded(); try { URL url = new URL("http://prod.poolparty.punkt.at/PoolParty/sparql/semweb"); browser = new Embedded("", new ExternalResource(url)); browser.setType(Embedded.TYPE_BROWSER); browser.setSizeFull(); //panel.addComponent(browser); } catch (MalformedURLException e) { e.printStackTrace(); } ; // The composition root MUST be set setCompositionRoot(browser); }
From source file:eu.lod2.VirtuosoISPARQL.java
License:Apache License
public VirtuosoISPARQL(LOD2DemoState st) { // The internal state and state = st;/*w ww .j a v a2s . c o m*/ Embedded browser = new Embedded(); try { URL url; if (state.getHostName().equals("http://localhost:8080")) { url = new URL("http://localhost:8890/isparql"); } else { url = new URL(state.getHostName() + "/virtuoso/isparql"); } ; browser = new Embedded("", new ExternalResource(url)); browser.setType(Embedded.TYPE_BROWSER); browser.setSizeFull(); } catch (MalformedURLException e) { e.printStackTrace(); } ; // The composition root MUST be set setCompositionRoot(browser); }
From source file:eu.lod2.VirtuosoSPARQL.java
License:Apache License
public VirtuosoSPARQL(LOD2DemoState st) { // The internal state and state = st;//from w w w .j ava2 s. com final String query = "SELECT * where {?s ?p ?o.} LIMIT 20"; String encodedQuery = ""; String encodedGraphName = ""; try { encodedQuery = URLEncoder.encode(query, "UTF-8"); encodedGraphName = URLEncoder.encode(state.getCurrentGraph(), "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } ; Embedded browser = new Embedded(); try { URL url; if (state.getHostName().equals("http://localhost:8080")) { url = new URL("http://localhost:8890/sparql"); } else { url = new URL(state.getHostName() + "/virtuoso/sparql"); } ; browser = new Embedded("", new ExternalResource(url)); browser.setType(Embedded.TYPE_BROWSER); browser.setSizeFull(); } catch (MalformedURLException e) { e.printStackTrace(); } ; // The composition root MUST be set setCompositionRoot(browser); }
From source file:gov.va.ds4p.ds4pmobileportal.ui.eHealthExchange.java
License:Open Source License
private Popover getPopoverPDF(String val, String title) { Popover popover = new Popover(); popover.setModal(true);/*from ww w . j ava2s . co m*/ popover.setClosable(true); popover.setWidth("700px"); popover.setHeight("100%"); CssLayout popLayout = new CssLayout(); popLayout.setSizeFull(); popLayout.setMargin(true); NavigationView navView = new NavigationView(popLayout); navView.setCaption(title); CssLayout layout2 = new CssLayout(); Embedded pdf = new Embedded(); pdf.setType(Embedded.TYPE_BROWSER); pdf.setMimeType("application/pdf"); pdf.setSizeFull(); pdf.setWidth("100%"); pdf.setHeight("700px"); pdf.setSource(createPdf(val)); layout2.addComponent(pdf); popLayout.addComponent(layout2); Button close = new Button(null, new ClickListener() { public void buttonClick(ClickEvent event) { event.getButton().getWindow().getParent().removeWindow(event.getButton().getWindow()); } }); close.setIcon(new ThemeResource("../runo/icons/64/cancel.png")); navView.setRightComponent(close); popover.setContent(navView); return popover; }
From source file:org.generationcp.breeding.manager.crossingmanager.EmbeddedGermplasmListDetailComponent.java
License:Open Source License
@Override public void afterPropertiesSet() throws Exception { setMargin(false);/*ww w. j a v a 2 s .c om*/ setSpacing(true); setWidth("800px"); Tool tool = null; try { tool = workbenchDataManager.getToolWithName(ToolName.germplasm_list_browser.toString()); } catch (MiddlewareQueryException qe) { LOG.error("QueryException", qe); } ExternalResource listBrowserLink = null; if (tool == null) { listBrowserLink = new ExternalResource( "http://localhost:18080/GermplasmStudyBrowser/main/germplasmlist-" + listId); } else { listBrowserLink = new ExternalResource( tool.getPath().replace("germplasmlist/", "germplasmlist-") + listId); } VerticalLayout layoutForList = new VerticalLayout(); layoutForList.setMargin(false); layoutForList.setSpacing(false); Embedded listInfoPage = new Embedded("", listBrowserLink); listInfoPage.setType(Embedded.TYPE_BROWSER); listInfoPage.setSizeFull(); layoutForList.setHeight("550px"); layoutForList.addComponent(listInfoPage); CrossingManagerImportButtonClickListener listener = new CrossingManagerImportButtonClickListener(this); exportButton = new Button(); exportButton.setData(EXPORT_BUTTON_ID); exportButton.addListener(listener); makeCrossesButton = new Button(); makeCrossesButton.setData(MAKE_CROSSES_BUTTON_ID); makeCrossesButton.addListener(listener); HorizontalLayout buttonArea = new HorizontalLayout(); buttonArea.setMargin(true); buttonArea.setSpacing(true); buttonArea.addComponent(exportButton); buttonArea.addComponent(makeCrossesButton); addComponent(layoutForList); addComponent(buttonArea); setComponentAlignment(buttonArea, Alignment.BOTTOM_RIGHT); }
From source file:org.icrisat.gdms.ui.GDMSMain.java
CssLayout getHeader() { CssLayout cssLayoutForHeaderImage = new CssLayout(); cssLayoutForHeaderImage.setWidth("100%"); ThemeResource themeResource = new ThemeResource("images/GDMS.gif"); //ThemeResource themeResource = new ThemeResource("images/Banner3.jpg"); Embedded headerImage = new Embedded("", themeResource); headerImage.setSizeFull(); cssLayoutForHeaderImage.setSizeFull(); cssLayoutForHeaderImage.addComponent(headerImage); cssLayoutForHeaderImage.setMargin(false, false, false, false); return cssLayoutForHeaderImage; }
From source file:ru.codeinside.gses.webui.form.PrintPanel.java
License:Mozilla Public License
private Panel createDocumentPanel(Application app, String classId) { Embedded document = new Embedded(null, new FileResource(htmlFile, app)); document.setDebugId(classId);//from w ww . j a v a 2 s. c o m document.setType(Embedded.TYPE_BROWSER); document.setSizeFull(); VerticalLayout documentLayout = new VerticalLayout(); documentLayout.setMargin(true); documentLayout.setSizeFull(); documentLayout.addComponent(document); documentLayout.setExpandRatio(document, 1f); Panel documentPanel = new Panel(documentLayout); documentPanel.setSizeFull(); return documentPanel; }