Example usage for com.vaadin.server FontAwesome getCodepoint

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

Introduction

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

Prototype

@Override
    public int getCodepoint() 

Source Link

Usage

From source file:com.mycollab.module.project.ui.ProjectAssetsManager.java

License:Open Source License

public static String getPriorityHtml(String priority) {
    if (StringUtils.isBlank(priority)) {
        priority = Priority.Medium.name();
    }/*from  ww w. ja  v  a  2 s  .c  om*/
    FontAwesome fontAwesome = getPriority(priority);
    return String.format("<span class=\"priority-%s v-icon\" style=\"font-family: FontAwesome;\">&#x%s;</span>",
            priority.toLowerCase(), Integer.toHexString(fontAwesome.getCodepoint()));
}