List of usage examples for com.vaadin.client VCaptionWrapper VCaptionWrapper
public VCaptionWrapper(ComponentConnector toBeWrapped, ApplicationConnection client)
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()); } } }