List of usage examples for com.vaadin.ui Alignment isCenter
public boolean isCenter()
From source file:pt.ist.vaadinframework.ui.PaginatedSorterViewer.java
License:Open Source License
private void addControls(Component controls, Alignment position) { HorizontalLayout controlBar;//from w ww . ja v a 2 s . com int x = position.isLeft() ? 0 : (position.isCenter() ? 1 : 2); int y = position.isTop() ? 0 : 2; controlBar = (HorizontalLayout) getComponent(x, y); controlBar.addComponent(controls); }