Example usage for com.vaadin.client.ui VLabel CLASSNAME

List of usage examples for com.vaadin.client.ui VLabel CLASSNAME

Introduction

In this page you can find the example usage for com.vaadin.client.ui VLabel CLASSNAME.

Prototype

String CLASSNAME

To view the source code for com.vaadin.client.ui VLabel CLASSNAME.

Click Source Link

Usage

From source file:org.eclipse.hawkbit.ui.customrenderers.client.renderers.HtmlLabelRenderer.java

License:Open Source License

private void applyStyle(VLabel label, String style) {
    label.setStyleName(VLabel.CLASSNAME);
    label.addStyleName(getStyle("small"));
    label.addStyleName(getStyle("font-icon"));
    if (style != null) {
        label.addStyleName(getStyle(style));
    }//  www.j  a v  a2s. c  om
}

From source file:org.eclipse.hawkbit.ui.customrenderers.client.renderers.HtmlLabelRenderer.java

License:Open Source License

private String getStyle(final String style) {
    return new StringBuilder(style).append(" ").append(VLabel.CLASSNAME).append("-").append(style).toString();
}