Example usage for com.vaadin.ui Embedded setSizeFull

List of usage examples for com.vaadin.ui Embedded setSizeFull

Introduction

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

Prototype

@Override
    public void setSizeFull() 

Source Link

Usage

From source file:se.natusoft.osgi.aps.apsadminweb.app.gui.vaadin.TabPanel.java

License:Open Source License

/**
 * Recreates all tabs.//from w  w w .j a va 2  s .  c  o  m
 */
public void refreshTabs() {
    List<AdminWebReg> currentAdminWebs = this.adminWebService.getRegisteredAdminWebs();

    // Remove old
    removeAllComponents();

    VerticalLayout aboutTabLayout = new VerticalLayout();
    aboutTabLayout.setStyleName("aps-tabsheet-tab");
    aboutTabLayout.setMargin(true);
    aboutTabLayout.setSizeFull();
    Label aboutText = new HTMLFileLabel("/html/about-admin-web.html", APSTheme.THEME,
            getClass().getClassLoader());
    aboutTabLayout.addComponent(aboutText);
    addTab(aboutTabLayout, "About", null).setDescription("Information about APS Admin Web tool.");

    // Add new
    for (AdminWebReg adminWebReg : currentAdminWebs) {
        VerticalLayout tabLayout = new VerticalLayout();
        tabLayout.setStyleName("aps-tabsheet-tab");
        tabLayout.setSizeFull();
        tabLayout.setMargin(false);
        tabLayout.setSpacing(false);
        Embedded adminWeb = new Embedded("", new ExternalResource(adminWebReg.getUrl() + "?adminRefresh"));
        adminWeb.setType(Embedded.TYPE_BROWSER);
        adminWeb.setSizeFull();
        tabLayout.addComponent(adminWeb);
        tabLayout.setData(adminWebReg);

        Tab tab = addTab(tabLayout, adminWebReg.getName(), null);
        tab.setDescription(adminWebReg.getDescription() + "<br/>[" + adminWebReg.getName() + ":"
                + adminWebReg.getVersion() + "]");
    }
}

From source file:ui.helper.UserArea.java

public UserArea(Integer userId, String language) {
    setSizeFull();/*from www . j  a  v a  2s.  c om*/
    Embedded e = new Embedded(getFullName(userId), getResource(userId));
    e.setSizeFull();
    addComponents(e);
}