Example usage for com.vaadin.ui CustomLayout setSizeFull

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

Introduction

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

Prototype

@Override
    public void setSizeFull() 

Source Link

Usage

From source file:com.foc.vaadin.gui.components.htmlTable.FVHtmlTable.java

License:Apache License

private void drawTable() {
    FocDataWrapper focDataWrapper = getFocDataWrapper();
    if (focDataWrapper != null) {
        FVTableColumn tableColumn = null;
        FVHtmlTableRow htmlTableRow = null;
        FVHtmlTableCell htmlTableCell = null;

        //Table Header
        openTableTag();// w  ww  . j  a va 2  s . c  o  m
        htmlTableRow = newRow(null, -1);
        for (int j = 0; j < getTableTreeDelegate().getVisiblePropertiesArrayList().size(); j++) {
            tableColumn = getTableTreeDelegate().getVisiblePropertiesArrayList().get(j);
            if (tableColumn != null) {
                htmlTableRow.newHeaderCell(tableColumn);
            }
        }
        htmlTableRow.closeRowTag();

        //Table Content
        FocObject focObject = null;
        for (int rowIndex = 0; rowIndex < focDataWrapper.size(); rowIndex++) {
            focObject = focDataWrapper.getAt(rowIndex);
            if (focObject != null) {
                htmlTableRow = newRow(focObject, rowIndex);
                for (int columnIndex = 0; columnIndex < getTableTreeDelegate().getVisiblePropertiesArrayList()
                        .size(); columnIndex++) {
                    tableColumn = getTableTreeDelegate().getVisiblePropertiesArrayList().get(columnIndex);
                    if (tableColumn != null) {
                        htmlTableCell = htmlTableRow.newCell(tableColumn);
                    }
                }
                htmlTableRow.closeRowTag();
            }
        }
        closeTableTag();
        getHtmlTableTags().closeBodyTag();
        getHtmlTableTags().closeHtmlTag();
    }

    try {
        CustomLayout customLayout = new CustomLayout(getHtmlTableTags().getTableByteArrayInputStream());
        customLayout.setSizeFull();
        //         customLayout.setHeight("-1px");
        addComponent(customLayout);
    } catch (IOException e) {
        e.printStackTrace();
    }
}

From source file:info.joseluismartin.gtc.admin.AdminApplication.java

License:Apache License

/**
 * {@inheritDoc}/*w w  w. j  av a2  s  .  c o m*/
 */
@Override
public void init() {
    ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(
            ((WebApplicationContext) getContext()).getHttpSession().getServletContext());
    TilaGuiFactory guiFactory = (TilaGuiFactory) ctx.getBean("guiFactory");
    setTheme("tila");
    Window mainWindow = new Window("Tila Administration");
    CustomLayout cl = new CustomLayout("main");
    Component main = guiFactory.getComponent("main");
    cl.addComponent(main, "main");
    cl.setSizeFull();
    mainWindow.setContent(cl);
    setMainWindow(mainWindow);
}

From source file:module.pandabox.presentation.PandaBox.java

License:Open Source License

private void showWelcomeScreen() {
    CustomLayout welcome = new CustomLayout("welcome");
    welcome.setSizeFull();
    root.setSecondComponent(welcome);/*from w  w w  .  j a  va2  s.  co  m*/
}