Example usage for com.vaadin.client VCaptionWrapper VCaptionWrapper

List of usage examples for com.vaadin.client VCaptionWrapper VCaptionWrapper

Introduction

In this page you can find the example usage for com.vaadin.client VCaptionWrapper VCaptionWrapper.

Prototype

public VCaptionWrapper(ComponentConnector toBeWrapped, ApplicationConnection client) 

Source Link

Document

Creates a new caption wrapper panel.

Usage

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

License:Apache License

public void updateCaption(ComponentConnector component) {
    if (VCaption.isNeeded(component)) {
        if (getWidget().popup.getCaptionWrapper() != null) {
            getWidget().popup.getCaptionWrapper().updateCaption();
        } else {//from ww w  .j  a  v  a 2 s.  com
            VCaptionWrapper captionWrapper = new VCaptionWrapper(component, getConnection());
            getWidget().popup.setWidget(captionWrapper);
            captionWrapper.updateCaption();
        }
    } else {
        if (getWidget().popup.getCaptionWrapper() != null) {
            getWidget().popup
                    .setWidget(getWidget().popup.getCaptionWrapper().getWrappedConnector().getWidget());
        }
    }
}