List of usage examples for com.vaadin.server FontAwesome ALIGN_RIGHT
FontAwesome ALIGN_RIGHT
To view the source code for com.vaadin.server FontAwesome ALIGN_RIGHT.
Click Source Link
From source file:com.cavisson.gui.dashboard.components.controls.MenuBars.java
License:Apache License
static MenuBar getToolBar() { MenuBar menubar = new MenuBar(); menubar.setWidth("100%"); MenuItem fav = menubar.addItem("", null); fav.setIcon(FontAwesome.ALIGN_LEFT); fav.setStyleName("icon-only"); fav.setCheckable(true);/*w ww .j a v a 2 s . co m*/ // fav.setChecked(true); fav = menubar.addItem("", null); fav.setIcon(FontAwesome.ALIGN_CENTER); fav.setStyleName("icon-only"); fav.setCheckable(true); fav = menubar.addItem("", null); fav.setIcon(FontAwesome.ALIGN_RIGHT); fav.setStyleName("icon-only"); fav.setCheckable(true); MenuItem clip = menubar.addItem("", null); clip.setIcon(FontAwesome.PAPERCLIP); clip.setStyleName("icon-only"); MenuItem undo = menubar.addItem("", null); undo.setIcon(FontAwesome.UNDO); undo.setStyleName("icon-only"); MenuItem redo = menubar.addItem("", null); redo.setIcon(FontAwesome.REPEAT); redo.setEnabled(false); redo.setStyleName("icon-only"); return menubar; }