Example usage for com.vaadin.ui HorizontalLayout HorizontalLayout

List of usage examples for com.vaadin.ui HorizontalLayout HorizontalLayout

Introduction

In this page you can find the example usage for com.vaadin.ui HorizontalLayout HorizontalLayout.

Prototype

public HorizontalLayout(Component... children) 

Source Link

Document

Constructs a HorizontalLayout with the given components.

Usage

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"))));
}