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