List of usage examples for com.vaadin.ui HorizontalLayout HorizontalLayout
public HorizontalLayout(Component... children)
From source file:annis.gui.components.NavigateableSinglePage.java
License:Apache License
public NavigateableSinglePage(File localFile, URI externalURI) { iframe.setSizeFull();//from w w w.j a v a2 s . c o m setSpacing(true); btPrint = new Button("Print"); btPrint.setStyleName(ValoTheme.BUTTON_LINK); btPrint.setEnabled(false); btPrint.addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { iframe.printFrame(); } }); this.toolLayout = new HorizontalLayout(btPrint); this.toolLayout.setComponentAlignment(btPrint, Alignment.MIDDLE_CENTER); addComponent(toolLayout); addComponent(iframe); setExpandRatio(iframe, 1.0f); setSource(localFile, externalURI); }
From source file:com.github.carljmosca.ui.FramesView.java
private void displayFrame() { imageLayout = new HorizontalLayout( new Image(null, new FileResource(new File("/Users/moscac/Downloads/GetMedia.jpeg")))); }