List of usage examples for com.vaadin.ui Component.Focusable setWidth
public void setWidth(float width, Unit unit);
From source file:de.kaiserpfalzEdv.vaadin.LayoutHelper.java
License:Apache License
public void addToLayout(Component.Focusable result, int tabIndex, int startColumn, int startRow, int endColumn, int endRow) { checkArgument(startColumn < maxCols, "Grid does not match! start column %s bigger than max column %s", startColumn, maxCols);/* w ww.j av a2 s .com*/ checkArgument(endColumn < maxCols, "Grid does not match! end column %s bigger than max column %s", endColumn, maxCols); checkArgument(startRow < maxRows, "Grid does not match! start row %s bigger than max row %s", startRow, maxRows); checkArgument(endRow < maxRows, "Grid does not match! end row %s bigger than max row %s", endRow, maxRows); result.setWidth(100f, PERCENTAGE); result.setTabIndex(tabIndex); if (GridLayout.class.isAssignableFrom(layout.getClass())) { ((GridLayout) layout).addComponent(result, startColumn, startRow, endColumn, endRow); } else { layout.addComponent(result); } }