Example usage for com.vaadin.server FontAwesome COMMENT_O

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

Introduction

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

Prototype

FontAwesome COMMENT_O

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

Click Source Link

Usage

From source file:com.esofthead.mycollab.community.module.project.view.bug.BugPopupFieldFactoryImpl.java

License:Open Source License

@Override
public AbstractComponent createCommentsPopupField(SimpleBug bug) {
    if (bug.getNumComments() != null) {
        return new MetaFieldBuilder().withCaptionAndIcon(FontAwesome.COMMENT_O, "" + bug.getNumComments())
                .withDescription("Comments").build();
    } else {// ww  w . j av  a 2  s. c  o m
        return new MetaFieldBuilder().withCaptionAndIcon(FontAwesome.COMMENT_O, " 0")
                .withDescription("Comments").build();
    }
}

From source file:com.esofthead.mycollab.community.module.project.view.task.TaskPopupFieldFactoryImpl.java

License:Open Source License

@Override
public AbstractComponent createCommentsPopupField(SimpleTask task) {
    return new MetaFieldBuilder()
            .withCaption(FontAwesome.COMMENT_O.getHtml() + " " + NumberUtils.zeroIfNull(task.getNumComments()))
            .withDescription("Comments").build();
}

From source file:com.mycollab.community.module.project.view.service.BugComponentFactoryImpl.java

License:Open Source License

@Override
public AbstractComponent createCommentsPopupField(SimpleBug bug) {
    if (bug.getNumComments() != null) {
        return new MetaFieldBuilder().withCaptionAndIcon(FontAwesome.COMMENT_O, "" + bug.getNumComments())
                .withDescription(UserUIContext.getMessage(GenericI18Enum.OPT_COMMENTS)).build();
    } else {/*  w ww .  j  a v a  2  s . c  o m*/
        return new MetaFieldBuilder().withCaptionAndIcon(FontAwesome.COMMENT_O, " 0")
                .withDescription(UserUIContext.getMessage(GenericI18Enum.OPT_COMMENTS)).build();
    }
}

From source file:com.mycollab.community.module.project.view.service.TaskComponentFactoryImpl.java

License:Open Source License

@Override
public AbstractComponent createCommentsPopupField(SimpleTask task) {
    return new MetaFieldBuilder()
            .withCaption(FontAwesome.COMMENT_O.getHtml() + " " + NumberUtils.zeroIfNull(task.getNumComments()))
            .withDescription(UserUIContext.getMessage(ShellI18nEnum.OPT_UPGRADE_PRO_INTRO,
                    UserUIContext.getMessage(GenericI18Enum.OPT_COMMENTS)))
            .build();/*from ww w.  j  a va 2  s  .  c o  m*/
}

From source file:com.mycollab.community.module.project.view.service.TicketComponentFactoryImpl.java

License:Open Source License

@Override
public AbstractComponent createCommentsPopupField(ProjectTicket assignment) {
    return new MetaFieldBuilder()
            .withCaption(/*from www  .ja v a 2  s .com*/
                    FontAwesome.COMMENT_O.getHtml() + " " + NumberUtils.zeroIfNull(assignment.getNumComments()))
            .withDescription(UserUIContext.getMessage(ShellI18nEnum.OPT_UPGRADE_PRO_INTRO,
                    UserUIContext.getMessage(GenericI18Enum.OPT_COMMENTS)))
            .build();
}