com.vaadin.ui.Layout.setSizeFull()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(97)

本文整理了Java中com.vaadin.ui.Layout.setSizeFull()方法的一些代码示例,展示了Layout.setSizeFull()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Layout.setSizeFull()方法的具体详情如下:
包路径:com.vaadin.ui.Layout
类名称:Layout
方法名:setSizeFull

Layout.setSizeFull介绍

暂无

代码示例

代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin

@PostConstruct
public void init() {
  panel = new VerticalLayout();
  panel.setSizeFull();
  addComponent(panel);
}

代码示例来源:origin: stackoverflow.com

public class MyUi extends UI {
  @Override
  protected void init(VaadinRequest request) {
    // basic stuff
    Layout content = new VerticalLayout();
    content.setSizeFull();
    setContent(content);

    // container & grid
    BeanItemContainer<Address> container = new BeanItemContainer<>(Address.class);
    Grid grid = new Grid(container);

    // 1) either manually add nested properties and hide the actual inner bean
    container.addNestedContainerProperty("city.name");
    grid.getColumn("city.name").setHeaderCaption("City");
    grid.setColumns("street", "city.name"); // hide bean column

    // 2) or make the container create nested properties for your inner beans
    container.addNestedContainerBean("city");
    grid.getColumn("city.name").setHeaderCaption("City");

    // create some dummy data to populate the grid
    City city = new City("There");
    Address address = new Address(city, "Here");
    container.addItem(address);
    content.addComponent(grid);
  }
}

代码示例来源:origin: korpling/ANNIS

l.setSizeFull();

相关文章