List of usage examples for com.vaadin.client ComponentConnector getState
@Override
public AbstractComponentState getState();
From source file:info.magnolia.ui.vaadin.gwt.client.dialog.connector.BaseDialogConnector.java
License:Open Source License
@Override public void updateCaption(ComponentConnector connector) { if (this == connector) { view.setCaption(connector.getState().caption); }/*from w w w.ja va 2s .c o m*/ }
From source file:info.magnolia.ui.vaadin.gwt.client.form.formsection.connector.FormSectionConnector.java
License:Open Source License
private void updateChildError(ComponentConnector connector) { final String errorMsg = connector.getState().errorMessage; boolean errorOccurred = errorMsg != null && !errorMsg.isEmpty(); if (getState().isValidationVisible && errorOccurred) { getWidget().setFieldError(connector.getWidget(), errorMsg); } else {//w ww .j ava 2s. co m getWidget().clearError(connector.getWidget()); } }
From source file:info.magnolia.ui.vaadin.gwt.client.form.formsection.connector.FormSectionConnector.java
License:Open Source License
@Override public void updateCaption(ComponentConnector connector) { getWidget().setFieldCaption(connector.getWidget(), connector.getState().caption); }
From source file:info.magnolia.ui.vaadin.gwt.client.tabsheet.connector.MagnoliaTabSheetConnector.java
License:Open Source License
@Override public void updateCaption(ComponentConnector connector) { final String caption = connector.getState().caption; if (connector.getWidget() instanceof MagnoliaTabWidget) { MagnoliaTabWidget tab = (MagnoliaTabWidget) connector.getWidget(); tab.getLabel().updateCaption(caption); }/*from w w w . j a v a 2s . c om*/ }
From source file:org.vaadin.addons.portallayout.gwt.client.portal.connection.PortalLayoutConnector.java
License:Apache License
@Override public void updateCaption(ComponentConnector connector) { if (getState().contentToPortlet.get(connector) != null) { final PortletConnector pc = (PortletConnector) getState().contentToPortlet.get(connector); pc.setCaption(connector.getState().caption); URLReference iconRef = connector.getState().resources.get(ComponentConstants.ICON_RESOURCE); pc.setIcon(iconRef != null ? iconRef.getURL() : null); }//w w w .ja va 2 s. co m }