Example usage for com.vaadin.client VCaptionWrapper updateCaption

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

Introduction

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

Prototype

public void updateCaption() 

Source Link

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 w ww  . j  a va2  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());
        }
    }
}