List of usage examples for com.vaadin.server FontAwesome COFFEE
FontAwesome COFFEE
To view the source code for com.vaadin.server FontAwesome COFFEE.
Click Source Link
From source file:com.etest.view.systemadministration.HousekeepingMainUI.java
Table populateDataTable() { table.removeAllItems();// www. j av a 2 s .c o m int i = 0; for (CellItem ci : hs.getAllItemsFromArchive()) { VerticalLayout v = new VerticalLayout(); v.setWidth("100%"); Button recycle = new Button("recycle"); recycle.setWidthUndefined(); recycle.setData(ci.getCellItemId()); recycle.setIcon(FontAwesome.RECYCLE); recycle.addStyleName(ValoTheme.BUTTON_LINK); recycle.addStyleName(ValoTheme.BUTTON_TINY); recycle.addStyleName(ValoTheme.BUTTON_QUIET); recycle.addStyleName("button-container"); v.addComponent(recycle); v.setComponentAlignment(recycle, Alignment.MIDDLE_LEFT); Button view = new Button("view"); view.setWidthUndefined(); view.setData(ci.getCellItemId()); view.setIcon(FontAwesome.COFFEE); view.addStyleName(ValoTheme.BUTTON_LINK); view.addStyleName(ValoTheme.BUTTON_TINY); view.addStyleName(ValoTheme.BUTTON_QUIET); view.addStyleName("button-container"); view.addClickListener(buttonClickListener); v.addComponent(view); v.setComponentAlignment(view, Alignment.MIDDLE_LEFT); table.addItem(new Object[] { ci.getCellItemId(), ci.getItem(), v }, i); i++; } table.setPageLength(table.size()); return table; }
From source file:lifetime.component.welcome.ContactButton.java
License:Apache License
public ContactButton(String language) { super(Translator.getTranslation("Contact", language), language, FontAwesome.COFFEE); setId(StyleClassName.CONTACT_BUTTON.getId()); addClickListener(new ClickListener() { @Override/*from ww w .ja v a 2 s .c om*/ public void buttonClick(ClickEvent event) { getUI().getNavigator().navigateTo(Navigation.CONTACT_VIEW.getName()); } }); }