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

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

Introduction

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

Prototype

String CLASSNAME

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

Click Source Link

Usage

From source file:com.haulmont.cuba.web.widgets.client.addons.popupbutton.VPopupButton.java

License:Apache License

public void setPopupStyleNames(List<String> styleNames) {
    if (styleNames != null && !styleNames.isEmpty()) {
        final StringBuffer styleBuf = new StringBuffer();
        final String primaryName = popup.getStylePrimaryName();
        styleBuf.append(primaryName);//from   www. ja  v  a2s.c o m
        styleBuf.append(" ");
        styleBuf.append(VPopupView.CLASSNAME + "-popup");
        for (String style : styleNames) {
            styleBuf.append(" ");
            styleBuf.append(primaryName);
            styleBuf.append("-");
            styleBuf.append(style);
        }
        popup.setStyleName(styleBuf.toString());
    } else {
        popup.setStyleName(popup.getStylePrimaryName() + " " + VPopupView.CLASSNAME + "-popup");
    }
}