List of usage examples for com.vaadin.ui Embedded setSizeFull
@Override public void setSizeFull()
From source file:eu.lod2.ELoadRDFFile.java
License:Apache License
public ELoadRDFFile(LOD2DemoState st) { // The internal state and state = st;/*from w ww.ja va 2s .c om*/ initVirtuoso(); Embedded browser = new Embedded(); try { URL url; if (virtuoso_username.equals("") || virtuoso_password.equals("")) { url = new URL( "http://localhost:8890/conductor/rdf_import.vspx?username=dba&t_login_pwd=dba&password=dba"); } else if (virtuoso_service.equals("")) { url = new URL(state.getHostName() + "/conductor/rdf_import.vspx?username=" + virtuoso_username + "&t_login_pwd=" + virtuoso_password + "&password=" + virtuoso_password); } else { url = new URL(virtuoso_service + "/rdf_import.vspx?username=" + virtuoso_username + "&t_login_pwd=" + virtuoso_password + "&password=" + virtuoso_password); } ; browser = new Embedded("", new ExternalResource(url)); browser.setType(Embedded.TYPE_BROWSER); browser.setSizeFull(); //panel.addComponent(browser); } catch (MalformedURLException e) { e.printStackTrace(); } ; browser.setSizeUndefined(); setSizeUndefined(); // The composition root MUST be set setCompositionRoot(browser); }
From source file:eu.lod2.IframedUrl.java
License:Apache License
public IframedUrl(LOD2DemoState st, String urlref) { // The internal state state = st;//from ww w.java 2 s. co m Embedded browser = new Embedded(); try { URL url = new URL(urlref); 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.LinkingTab.java
License:Apache License
public LinkingTab(LOD2DemoState st) { // The internal state and state = st;//from w ww .j a v a2 s . c om Embedded browser = new Embedded(); try { URL url = new URL(state.getHostName() + "/silk"); 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.LODCloud.java
License:Apache License
public LODCloud(LOD2DemoState st) { // The internal state state = st;/*from www . j a va2 s .c o m*/ Embedded browser = new Embedded(); try { URL url = new URL("http://lod.openlinksw.com"); 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.Lodrefine.java
License:Apache License
public Lodrefine(LOD2DemoState st) { // The internal state state = st;//ww w . j a v a2 s .co m initLogin(); Embedded browser = new Embedded(); try { URL url = new URL(service); 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.MondecaSPARQLList.java
License:Apache License
public MondecaSPARQLList(LOD2DemoState st) { // The internal state state = st;/*from www. jav a2s.c o m*/ Embedded browser = new Embedded(); try { URL url = new URL("http://sparqles.okfn.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.OnlinePoolParty.java
License:Apache License
public OnlinePoolParty(LOD2DemoState st) { // The internal state state = st;//www .j a v a 2 s.c om Embedded browser = new Embedded(); try { URL url = new URL("http://lod2.poolparty.biz/PoolParty"); 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.OntoWiki.java
License:Apache License
public OntoWiki(LOD2DemoState st) { // The internal state state = st;//from w w w . j av a 2s. c o m initLogin(); activateCurrentGraph(); Embedded browser = new Embedded(); try { URL url = new URL(service + "/"); 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.OntoWikiQuery.java
License:Apache License
public OntoWikiQuery(LOD2DemoState st) { // The internal state and state = st;// w ww . ja va 2 s . c o m initLogin(); VerticalLayout queryingTab = new VerticalLayout(); 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(); } ; if (encodedGraphName.equals("")) { Label l = new Label("One must select a current graph to use this functionality."); queryingTab.addComponent(l); } else { String redirecturi = service + "/queries/editor/?query=" + encodedQuery + "&m=" + encodedGraphName; URL request = loginandqueryRequest(redirecturi); if (request == null) { Label l = new Label( "The settings are incorrect to result in a valid URL which gives access to this functionality."); queryingTab.addComponent(l); } else { Embedded browser = new Embedded("", new ExternalResource(request)); browser.setType(Embedded.TYPE_BROWSER); browser.setSizeFull(); queryingTab.addComponent(browser); } } /* Label l = new Label(service + "/queries/editor/?query="+ encodedQuery + "&m=" + encodedGraphName); queryingTab.addComponent(l); Embedded browser = new Embedded(); try { URL url; if (encodedGraphName.equals("")) { url = new URL(service + "/queries/editor/?query="+ encodedQuery); } else { url = new URL(service + "/queries/editor/?query="+ encodedQuery + "&m=" + encodedGraphName); }; browser = new Embedded("", new ExternalResource(url)); browser.setType(Embedded.TYPE_BROWSER); browser.setSizeFull(); } catch (MalformedURLException e) { e.printStackTrace(); }; queryingTab.addComponent(browser); */ // The composition root MUST be set queryingTab.setSizeFull(); setCompositionRoot(queryingTab); }
From source file:eu.lod2.ORE.java
License:Apache License
public ORE(LOD2DemoState st) { // The internal state state = st;/* ww w. j a v a 2s.c o m*/ Embedded browser = new Embedded(); try { URL url = new URL(state.getHostName() + "/ore/app/Application.html"); 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); }