Example usage for com.vaadin.server FontAwesome THUMB_TACK

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

Introduction

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

Prototype

FontAwesome THUMB_TACK

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

Click Source Link

Usage

From source file:org.eclipse.hawkbit.ui.management.dstable.DistributionTable.java

License:Open Source License

private Button createPinBtn(final Object itemId) {

    final Item item = getContainerDataSource().getItem(itemId);
    final String name = (String) item.getItemProperty(SPUILabelDefinitions.VAR_NAME).getValue();

    final String version = (String) item.getItemProperty(SPUILabelDefinitions.VAR_VERSION).getValue();
    final DistributionSetIdName distributionSetIdName = new DistributionSetIdName((Long) itemId, name, version);

    final Button pinBtn = new Button();
    pinBtn.setIcon(FontAwesome.THUMB_TACK);
    pinBtn.setHeightUndefined();/* w  w w. j av a  2 s  .c  om*/
    pinBtn.addStyleName(getPinStyle());
    pinBtn.setData(distributionSetIdName);
    pinBtn.setId(getPinButtonId(name, version));
    pinBtn.setImmediate(true);
    pinBtn.setDescription(getI18n().getMessage(UIMessageIdProvider.TOOLTIP_DISTRIBUTION_SET_PIN));
    return pinBtn;
}