Example usage for com.vaadin.server FontAwesome SQUARE

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

Introduction

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

Prototype

FontAwesome SQUARE

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

Click Source Link

Usage

From source file:org.eclipse.hawkbit.ui.management.targettag.filter.FilterByStatusLayout.java

License:Open Source License

/**
 * Get - status of FILTER.//from w w  w  .  j a  v  a 2s .c o m
 */
private void getTargetFilterStatuses() {
    unknown = SPUIComponentProvider.getButton(UIComponentIdProvider.UNKNOWN_STATUS_ICON,
            TargetUpdateStatus.UNKNOWN.toString(),
            i18n.getMessage(UIMessageIdProvider.TOOLTIP_TARGET_STATUS_UNKNOWN),
            SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    inSync = SPUIComponentProvider.getButton(UIComponentIdProvider.INSYNCH_STATUS_ICON,
            TargetUpdateStatus.IN_SYNC.toString(), i18n.getMessage(UIMessageIdProvider.TOOLTIP_STATUS_INSYNC),
            SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    pending = SPUIComponentProvider.getButton(UIComponentIdProvider.PENDING_STATUS_ICON,
            TargetUpdateStatus.PENDING.toString(), i18n.getMessage(UIMessageIdProvider.TOOLTIP_STATUS_PENDING),
            SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    error = SPUIComponentProvider.getButton(UIComponentIdProvider.ERROR_STATUS_ICON,
            TargetUpdateStatus.ERROR.toString(), i18n.getMessage(UIMessageIdProvider.TOOLTIP_STATUS_ERROR),
            SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    registered = SPUIComponentProvider.getButton(UIComponentIdProvider.REGISTERED_STATUS_ICON,
            TargetUpdateStatus.REGISTERED.toString(),
            i18n.getMessage(UIMessageIdProvider.TOOLTIP_STATUS_REGISTERED),
            SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    overdue = SPUIComponentProvider.getButton(UIComponentIdProvider.OVERDUE_STATUS_ICON, OVERDUE_CAPTION,
            i18n.getMessage(UIMessageIdProvider.TOOLTIP_STATUS_OVERDUE), SPUIDefinitions.SP_BUTTON_STATUS_STYLE,
            false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    applyStatusBtnStyle();
    unknown.setData("filterStatusOne");
    inSync.setData("filterStatusTwo");
    pending.setData("filterStatusThree");
    error.setData("filterStatusFour");
    registered.setData("filterStatusFive");
    overdue.setData("filterStatusSix");

    unknown.addClickListener(this);
    inSync.addClickListener(this);
    pending.addClickListener(this);
    error.addClickListener(this);
    registered.addClickListener(this);
    overdue.addClickListener(this);
}

From source file:org.eclipse.hawkbit.ui.management.targettag.FilterByStatusLayout.java

License:Open Source License

/**
 * Get - status of FILTER./*from w w w  .j av a 2 s  .  c o m*/
 */
private void getTargetFilterStatuses() {
    unknown = SPUIComponentProvider.getButton(UIComponentIdProvider.UNKNOWN_STATUS_ICON,
            TargetUpdateStatus.UNKNOWN.toString(), i18n.getMessage("tooltip.status.unknown"),
            SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    inSync = SPUIComponentProvider.getButton(UIComponentIdProvider.INSYNCH_STATUS_ICON,
            TargetUpdateStatus.IN_SYNC.toString(), i18n.getMessage("tooltip.status.insync"),
            SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    pending = SPUIComponentProvider.getButton(UIComponentIdProvider.PENDING_STATUS_ICON,
            TargetUpdateStatus.PENDING.toString(), i18n.getMessage("tooltip.status.pending"),
            SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    error = SPUIComponentProvider.getButton(UIComponentIdProvider.ERROR_STATUS_ICON,
            TargetUpdateStatus.ERROR.toString(), i18n.getMessage("tooltip.status.error"),
            SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    registered = SPUIComponentProvider.getButton(UIComponentIdProvider.REGISTERED_STATUS_ICON,
            TargetUpdateStatus.REGISTERED.toString(), i18n.getMessage("tooltip.status.registered"),
            SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false, FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    overdue = SPUIComponentProvider.getButton(UIComponentIdProvider.OVERDUE_STATUS_ICON, OVERDUE_CAPTION,
            i18n.getMessage("tooltip.status.overdue"), SPUIDefinitions.SP_BUTTON_STATUS_STYLE, false,
            FontAwesome.SQUARE, SPUIButtonStyleSmall.class);
    applyStatusBtnStyle();
    unknown.setData("filterStatusOne");
    inSync.setData("filterStatusTwo");
    pending.setData("filterStatusThree");
    error.setData("filterStatusFour");
    registered.setData("filterStatusFive");
    overdue.setData("filterStatusSix");

    unknown.addClickListener(this);
    inSync.addClickListener(this);
    pending.addClickListener(this);
    error.addClickListener(this);
    registered.addClickListener(this);
    overdue.addClickListener(this);
}

From source file:org.jpos.qi.minigl.AccountsView.java

License:Open Source License

@Override
protected HorizontalLayout createHeader(String title) {
    HorizontalLayout header = super.createHeader(title);
    if (isGeneralView()) {
        Label refDebit = new Label(FontAwesome.SQUARE.getHtml() + " DEBIT accounts");
        Label refCredit = new Label(FontAwesome.SQUARE.getHtml() + " CREDIT accounts");
        refDebit.setContentMode(ContentMode.HTML);
        refCredit.setContentMode(ContentMode.HTML);
        refDebit.setStyleName("debit-color");
        refCredit.setStyleName("credit-color");
        refDebit.addStyleName(ValoTheme.LABEL_SMALL);
        refCredit.addStyleName(ValoTheme.LABEL_SMALL);
        Button collapse = new Button(getApp().getMessage("collapseAll"), event -> {
            ((TreeGrid) getGrid()).collapse(expandedItems.toArray());

        });/*  w w  w . j  a  v  a2s .co  m*/
        collapse.setStyleName(ValoTheme.BUTTON_LINK);
        collapse.addStyleName(ValoTheme.BUTTON_SMALL);
        HorizontalLayout l = new HorizontalLayout(refDebit, refCredit, collapse);
        l.setSpacing(true);
        l.setComponentAlignment(refDebit, Alignment.BOTTOM_CENTER);
        l.setComponentAlignment(refCredit, Alignment.BOTTOM_CENTER);
        l.setComponentAlignment(collapse, Alignment.BOTTOM_CENTER);
        header.addComponent(l);
        header.setComponentAlignment(l, Alignment.MIDDLE_RIGHT);
    }
    return header;
}