Java Code Examples for com.vaadin.ui.GridLayout#setRowExpandRatio()
The following examples show how to use
com.vaadin.ui.GridLayout#setRowExpandRatio() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UploadArtifactView.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
private GridLayout createMainLayout() { createDetailsAndUploadLayout(); mainLayout = new GridLayout(3, 1); mainLayout.setSizeFull(); mainLayout.setSpacing(true); mainLayout.setStyleName("fullSize"); mainLayout.addComponent(filterByTypeLayout, 0, 0); mainLayout.addComponent(smTableLayout, 1, 0); mainLayout.addComponent(detailAndUploadLayout, 2, 0); mainLayout.setRowExpandRatio(0, 1.0F); mainLayout.setColumnExpandRatio(1, 0.5F); mainLayout.setColumnExpandRatio(2, 0.5F); return mainLayout; }
Example 2
Source File: DeploymentView.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
private void createMainLayout() { mainLayout = new GridLayout(); layoutWidgets(); mainLayout.setSizeFull(); mainLayout.setSpacing(true); mainLayout.setRowExpandRatio(0, 1F); mainLayout.setStyleName("fullSize"); }
Example 3
Source File: DistributionsView.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
private void createMainLayout() { mainLayout = new GridLayout(4, 1); mainLayout.setSizeFull(); mainLayout.setSpacing(true); mainLayout.setStyleName("fullSize"); mainLayout.addComponent(filterByDSTypeLayout, 0, 0); mainLayout.addComponent(distributionTableLayout, 1, 0); mainLayout.addComponent(softwareModuleTableLayout, 2, 0); mainLayout.addComponent(filterBySMTypeLayout, 3, 0); mainLayout.setRowExpandRatio(0, 1.0F); mainLayout.setColumnExpandRatio(1, 0.5F); mainLayout.setColumnExpandRatio(2, 0.5F); }