Example usage for com.vaadin.server FontAwesome ALIGN_LEFT

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

Introduction

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

Prototype

FontAwesome ALIGN_LEFT

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

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  w  w.j  ava 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;
}