import com.vaadin.terminal.gwt.client.AbstractFieldState;
import com.vaadin.terminal.gwt.client.ApplicationConnection;
import com.vaadin.terminal.gwt.client.ComponentConnector;
-import com.vaadin.terminal.gwt.client.ConnectorMap;
import com.vaadin.terminal.gwt.client.LayoutManager;
import com.vaadin.terminal.gwt.client.Paintable;
import com.vaadin.terminal.gwt.client.UIDL;
getWidget().footer = newFooterWidget;
} else if (newFooter != getWidget().footer) {
getWidget().remove(getWidget().footer);
- client.unregisterPaintable(ConnectorMap.get(getConnection())
- .getConnector(getWidget().footer));
getWidget().add(newFooter.getWidget(),
getWidget().footerContainer);
}
} else {
if (getWidget().footer != null) {
getWidget().remove(getWidget().footer);
- client.unregisterPaintable(ConnectorMap.get(getConnection())
- .getConnector(getWidget().footer));
}
}
getWidget().add(newLayoutWidget, getWidget().fieldContainer);
} else if (getWidget().lo != newLayoutWidget) {
// Layout has changed
- client.unregisterPaintable(ConnectorMap.get(getConnection())
- .getConnector(getWidget().lo));
getWidget().remove(getWidget().lo);
getWidget().lo = newLayoutWidget;
getWidget().add(newLayoutWidget, getWidget().fieldContainer);
if (getWidget().layout != null) {
if (layoutChanged) {
// remove old
- client.unregisterPaintable(getWidget().layout);
if (childStateChangeHandlerRegistration != null) {
childStateChangeHandlerRegistration.removeHandler();
childStateChangeHandlerRegistration = null;
for (final Iterator<VWindow> rem = removedSubWindows.iterator(); rem
.hasNext();) {
final VWindow w = rem.next();
- client.unregisterPaintable(ConnectorMap.get(getConnection())
- .getConnector(w));
getWidget().subWindows.remove(w);
w.hide();
}
public void hide(boolean autoClosed) {
hiding = true;
syncChildren();
- unregisterPaintables();
if (popupComponentWidget != null && popupComponentWidget != loading) {
remove(popupComponentWidget);
}
}
- public void unregisterPaintables() {
- if (popupComponentPaintable != null) {
- client.unregisterPaintable(popupComponentPaintable);
- }
- }
-
public void setHideOnMouseOut(boolean hideOnMouseOut) {
this.hideOnMouseOut = hideOnMouseOut;
}