List of usage examples for com.vaadin.server FontAwesome ARROW_CIRCLE_O_DOWN
FontAwesome ARROW_CIRCLE_O_DOWN
To view the source code for com.vaadin.server FontAwesome ARROW_CIRCLE_O_DOWN.
Click Source Link
From source file:uicomponents.MSSampleMultiplicationTable.java
License:Open Source License
private Object createComplexCellComponent(ComboBox contentBox, String propertyName, final Object i) { HorizontalLayout complexComponent = new HorizontalLayout(); complexComponent.setWidth(contentBox.getWidth() + 10, contentBox.getWidthUnits()); complexComponent.addComponent(contentBox); complexComponent.setExpandRatio(contentBox, 1); Button copy = new Button(); Styles.iconButton(copy, FontAwesome.ARROW_CIRCLE_O_DOWN); copy.setStyleName(ValoTheme.BUTTON_BORDERLESS_COLORED); VerticalLayout vBox = new VerticalLayout(); vBox.setWidth("15px"); vBox.addComponent(copy);/*from w ww. jav a 2s .co m*/ complexComponent.addComponent(vBox); complexComponent.setComponentAlignment(vBox, Alignment.BOTTOM_RIGHT); copy.addClickListener(new ClickListener() { @Override public void buttonClick(ClickEvent event) { ComboBox b = parseBoxRow(i, propertyName); Object selection = b.getValue(); pasteSelectionToColumn(propertyName, selection); } }); return complexComponent; }