List of usage examples for com.vaadin.ui Embedded setHeight
@Override public void setHeight(String height)
From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java
License:Open Source License
public Embedded getGreyActionPlanThumb() { Embedded emb = new Embedded(null, locate(new Media("greyThumb21w29h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY))); emb.setWidth("21px"); emb.setHeight("29px"); return emb;//from w ww .j a v a 2 s. c o m }
From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java
License:Open Source License
public Embedded getBlackActionPlanThumb() { Embedded emb = new Embedded(null, locate(new Media("blackThumb21w29h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY))); emb.setWidth("21px"); emb.setHeight("29px"); return emb;/*from w w w. j a v a 2s .c o m*/ }
From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java
License:Open Source License
public Embedded getDialog2CornerResource() { Embedded emb = new Embedded(null, locate( new Media("dialog2Corner28w36h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY))); emb.setWidth("28px"); emb.setHeight("36px"); return emb;/*from w w w . jav a 2 s .com*/ }
From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java
License:Open Source License
public Embedded getTellMeMore130w15h() { Embedded emb = new Embedded(null, locate(new Media("tellMeMore130w15h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY))); emb.setWidth("130px"); emb.setHeight("15px"); return emb;//w w w .ja va 2 s . c o m }
From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java
License:Open Source License
public Embedded getImNewButton202w22h() { Embedded emb = new Embedded(null, locate( new Media("imNewButton202w22h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY))); emb.setWidth("202px"); emb.setHeight("22px"); return emb;// w ww . j av a2s .com }
From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java
License:Open Source License
public Embedded getImRegisteredButton133w24h() { Embedded emb = new Embedded(null, locate(new Media("imRegisteredButton133w24h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY))); emb.setWidth("133px"); emb.setHeight("24px"); return emb;/* ww w . j ava 2s. com*/ }
From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java
License:Open Source License
public Embedded getGuestLogin97w24h() { Embedded emb = new Embedded(null, locate(new Media("guestLogin97w24h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY))); emb.setWidth("97px"); emb.setHeight("24px"); return emb;//from ww w . j av a2 s . com }
From source file:eu.lod2.LOD2Demo.java
License:Apache License
public void home() { workspace.removeAllComponents();//from w w w. ja va 2 s.com workspace.setHeight("80%"); HorizontalLayout introH = new HorizontalLayout(); Embedded lod2cycle = new Embedded("", new ThemeResource("app_images/lod-lifecycle-small.png")); lod2cycle.setMimeType("image/png"); introH.addComponent(lod2cycle); introH.setComponentAlignment(lod2cycle, Alignment.MIDDLE_LEFT); VerticalLayout introV = new VerticalLayout(); introH.addComponent(introV); Label introtextl = new Label(introtext, Label.CONTENT_XHTML); introV.addComponent(introtextl); introtextl.setWidth("400px"); HorizontalLayout introVH = new HorizontalLayout(); introV.addComponent(introVH); Embedded euflag = new Embedded("", new ThemeResource("app_images/eu-flag.gif")); euflag.setMimeType("image/gif"); introVH.addComponent(euflag); euflag.addStyleName("eugif"); euflag.setHeight("50px"); Embedded fp7 = new Embedded("", new ThemeResource("app_images/fp7-gen-rgb_small.gif")); fp7.setMimeType("image/gif"); fp7.addStyleName("eugif"); fp7.setHeight("50px"); introVH.addComponent(fp7); workspace.addComponent(introH); }
From source file:eu.lod2.stat.StatLOD2Demo.java
License:Apache License
public void home() { workspace.removeAllComponents();// ww w .j a va2 s . c om workspace.setHeight("80%"); HorizontalLayout introH = new HorizontalLayout(); Embedded lod2cycle = new Embedded("", new ThemeResource("app_images/lod-lifecycle-cube.jpg")); lod2cycle.setMimeType("image/png"); introH.addComponent(lod2cycle); introH.setComponentAlignment(lod2cycle, Alignment.MIDDLE_LEFT); VerticalLayout introV = new VerticalLayout(); introH.addComponent(introV); Label introtextl = new Label(introtext, Label.CONTENT_XHTML); introV.addComponent(introtextl); introtextl.setWidth("400px"); HorizontalLayout introVH = new HorizontalLayout(); introV.addComponent(introVH); Embedded euflag = new Embedded("", new ThemeResource("app_images/eu-flag.gif")); euflag.setMimeType("image/gif"); introVH.addComponent(euflag); euflag.addStyleName("eugif"); euflag.setHeight("50px"); Embedded fp7 = new Embedded("", new ThemeResource("app_images/fp7-gen-rgb_small.gif")); fp7.setMimeType("image/gif"); fp7.addStyleName("eugif"); fp7.setHeight("50px"); introVH.addComponent(fp7); workspace.addComponent(introH); }
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);/* w ww .j av a 2 s . c om*/ 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; }