Example usage for com.vaadin.server FontAwesome ALIGN_RIGHT

List of usage examples for com.vaadin.server FontAwesome ALIGN_RIGHT

Introduction

In this page you can find the example usage for com.vaadin.server FontAwesome ALIGN_RIGHT.

Prototype

FontAwesome ALIGN_RIGHT

To view the source code for com.vaadin.server FontAwesome ALIGN_RIGHT.

Click Source Link

Usage

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;
}