Example usage for com.vaadin.server FontAwesome ARROW_CIRCLE_LEFT

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

Introduction

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

Prototype

FontAwesome ARROW_CIRCLE_LEFT

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

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. j  av a2  s. c  o  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);
}

From source file:uicomponents.PoolingTable.java

License:Open Source License

public PoolingTable(String name, TabSheet selectionTables, Map<Integer, Integer> usedTimes,
        List<String> factorLabels) {
    this.selectionTables = selectionTables;
    all = (Table) selectionTables.getTab(0).getComponent();
    used = (Table) selectionTables.getTab(1).getComponent();
    labels = factorLabels;/*from  www. ja v  a2 s. c o m*/

    this.usedTimes = usedTimes;
    setSpacing(true);

    HorizontalLayout tableButtonComponent = new HorizontalLayout();
    tableButtonComponent.setCaption("Sample Pool");
    tableButtonComponent.setSpacing(true);
    secondaryName = new StandardTextField("Secondary Name");
    secondaryName.setValue(name);
    secondaryName.setStyleName(Styles.fieldTheme);
    moveLeft = new Button();
    Styles.iconButton(moveLeft, FontAwesome.ARROW_CIRCLE_LEFT);

    moveLeft.addStyleName("large_font_awesome");
    addComponent(secondaryName);
    poolIDs = new HashSet<Integer>();
    poolTable = new Table();
    initTable();
    tableButtonComponent.addComponent(poolTable);
    tableButtonComponent.addComponent(moveLeft);
    addComponent(Styles.questionize(tableButtonComponent,
            "You can add samples to the active pool by " + "selecting them from the right and clicking "
                    + FontAwesome.ARROW_CIRCLE_LEFT.getHtml() + " or by dragging them over with your mouse.",
            "Adding Samples to Pools"));

    initDragAndDrop(new Or(new SourceIs(all), new SourceIs(used)));
    initButtonMover(all, used);
}