List of usage examples for com.vaadin.server FontAwesome PENCIL_SQUARE
FontAwesome PENCIL_SQUARE
To view the source code for com.vaadin.server FontAwesome PENCIL_SQUARE.
Click Source Link
From source file:com.hybridbpm.ui.component.bpm.designer.ProcessModelLayout.java
License:Apache License
private void prepareButtonsBars() { // element button bar btnEdit.addStyleName(ValoTheme.BUTTON_LINK); btnEdit.addStyleName(ValoTheme.BUTTON_SMALL); btnEdit.addStyleName("edit-button"); btnEdit.setIcon(FontAwesome.PENCIL_SQUARE); btnDelete.addStyleName(ValoTheme.BUTTON_LINK); btnDelete.addStyleName(ValoTheme.BUTTON_SMALL); btnDelete.addStyleName("edit-button"); btnDelete.setIcon(FontAwesome.TIMES); elementButtonBar.addComponent(btnEdit); elementButtonBar.addComponent(btnDelete); elementButtonBar.setId("button-bar"); // width button bar btnRight.setIcon(FontAwesome.ARROW_CIRCLE_RIGHT); btnRight.addStyleName(ValoTheme.BUTTON_LINK); btnLeft.setIcon(FontAwesome.ARROW_CIRCLE_LEFT); btnLeft.addStyleName(ValoTheme.BUTTON_LINK); widthButtonBar.addComponent(btnRight); widthButtonBar.addComponent(btnLeft); widthButtonBar.addStyleName("width-button-bar"); widthButtonBar.setWidthUndefined();//from w w w .jav a 2s. co m addComponent(widthButtonBar); // height button bar btnUp.setIcon(FontAwesome.ARROW_CIRCLE_UP); btnUp.addStyleName(ValoTheme.BUTTON_LINK); btnDown.setIcon(FontAwesome.ARROW_CIRCLE_DOWN); btnDown.addStyleName(ValoTheme.BUTTON_LINK); heightButtonBar.addComponent(btnUp); heightButtonBar.addComponent(btnDown); heightButtonBar.addStyleName("height-button-bar"); addComponent(heightButtonBar); }