Example usage for com.vaadin.ui VerticalLayout getParent

List of usage examples for com.vaadin.ui VerticalLayout getParent

Introduction

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

Prototype

@Override
    public HasComponents getParent() 

Source Link

Usage

From source file:org.escidoc.browser.ui.maincontent.ItemContent.java

License:Open Source License

private void wrap(final VerticalLayout verticalLayout) {
    try {//  ww  w. j a v  a2  s  .  c  o  m
        if (userIsPermittedToUpdate()) {

            verticalLayout.setHeight("99%");

            final DragAndDropFileUpload dragAndDropFileUpload = new DragAndDropFileUpload(repositories,
                    itemProxy, this, verticalLayout);
            dragAndDropFileUpload.setSizeFull();

            addComponent(dragAndDropFileUpload);
            verticalLayout.getParent().setWidth("99%");
            verticalLayout.getParent().setHeight("99%");
        }
    } catch (final EscidocClientException e) {
        LOG.error(e.getMessage());
        showError(e);
    } catch (final URISyntaxException e) {
        LOG.error(e.getMessage());
        showError(e);
    }
}