Example usage for com.vaadin.ui PopupView setStyleName

List of usage examples for com.vaadin.ui PopupView setStyleName

Introduction

In this page you can find the example usage for com.vaadin.ui PopupView setStyleName.

Prototype

@Override
    public void setStyleName(String style) 

Source Link

Usage

From source file:org.generationcp.breeding.manager.crosses.NurseryTemplateMain.java

License:Open Source License

public void setTitleContent(String guideMessage) {
    titleLayout.removeAllComponents();//w  w w. j a  v  a2 s  .  c o m

    String title = "<h1>Crossing Manager:</h1> <h1>Nursery Template File</h1> <h2>" + VERSION + "</h2>";
    nurseryTemplateTitle = new Label();
    nurseryTemplateTitle.setStyleName("gcp-window-title");
    nurseryTemplateTitle.setContentMode(Label.CONTENT_XHTML);
    nurseryTemplateTitle.setValue(title);
    titleLayout.addComponent(nurseryTemplateTitle);

    Label descLbl = new Label(guideMessage);
    descLbl.setWidth("300px");

    PopupView popup = new PopupView("?", descLbl);
    popup.setStyleName("gcp-popup-view");
    titleLayout.addComponent(popup);

    titleLayout.setComponentAlignment(popup, Alignment.MIDDLE_LEFT);
}