Example usage for com.vaadin.server FontAwesome PENCIL_SQUARE

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

Introduction

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

Prototype

FontAwesome PENCIL_SQUARE

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

Click Source Link

Usage

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