Example usage for com.vaadin.server FontAwesome EXCLAMATION

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

Introduction

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

Prototype

FontAwesome EXCLAMATION

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

Click Source Link

Usage

From source file:com.esofthead.mycollab.common.ui.components.notification.NewUpdateNotification.java

License:Open Source License

@Override
public Component renderContent() {
    Span spanEl = new Span();
    spanEl.appendText("There is the new MyCollab version " + props.getProperty("version") + " . For the "
            + "enhancements and security purpose, you should upgrade to the latest version at ");

    A link = new A(props.getProperty("downloadLink"), "_blank");
    link.appendText("here");
    spanEl.appendChild(link);/*from  www  . j ava2 s.  co  m*/
    return new Label(FontAwesome.EXCLAMATION.getHtml() + " " + spanEl.write(), ContentMode.HTML);
}

From source file:com.esofthead.mycollab.common.ui.components.notification.RequestUploadAvatarNotification.java

License:Open Source License

@Override
public Component renderContent() {
    Span spanEl = new Span();
    spanEl.appendText("You haven't uploaded your avatar yet. Please upload it at ");

    A link = new A(AccountLinkGenerator.generateFullProfileLink(AppContext.getSiteUrl()));
    link.appendText("here");
    spanEl.appendChild(link);//from w  w w.  jav a  2 s  .c  o m
    return new Label(FontAwesome.EXCLAMATION.getHtml() + " " + spanEl.write(), ContentMode.HTML);
}

From source file:com.esofthead.mycollab.common.ui.components.notification.TimezoneNotification.java

License:Open Source License

@Override
public Component renderContent() {
    Span spanEl = new Span();
    spanEl.appendText("You haven't chosen preferred timezone. Please set it ");

    A link = new A(AccountLinkGenerator.generatePreviewFullUserLink(AppContext.getSiteUrl(),
            AppContext.getSession().getUsername()));
    link.appendText("here");
    spanEl.appendChild(link);//from   w  w w .j a  va 2  s  .c  o m
    return new Label(FontAwesome.EXCLAMATION.getHtml() + " " + spanEl.write(), ContentMode.HTML);
}