getWidget().spacingMeasureElement);
}
+ @Override
+ public void onUnregister() {
+ LayoutManager lm = getLayoutManager();
+
+ VMeasuringOrderedLayout layout = getWidget();
+ lm.unregisterDependency(this, layout.spacingMeasureElement);
+
+ // Unregister child caption listeners
+ for (ComponentConnector child : getChildren()) {
+ VLayoutSlot slot = layout.getSlotForChild(child.getWidget());
+ slot.setCaption(null);
+ }
+ }
+
@Override
public AbstractOrderedLayoutState getState() {
return (AbstractOrderedLayoutState) super.getState();
getWidget().spacingMeasureElement);
}
+ @Override
+ public void onUnregister() {
+ VGridLayout layout = getWidget();
+ getLayoutManager().unregisterDependency(this,
+ layout.spacingMeasureElement);
+
+ // Unregister caption size dependencies
+ for (ComponentConnector child : getChildren()) {
+ Cell cell = layout.widgetToCell.get(child.getWidget());
+ cell.slot.setCaption(null);
+ }
+ }
+
@Override
public GridLayoutState getState() {
return (GridLayoutState) super.getState();
import com.vaadin.terminal.gwt.client.MouseEventDetails;
import com.vaadin.terminal.gwt.client.Paintable;
import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.Util;
import com.vaadin.terminal.gwt.client.communication.RpcProxy;
import com.vaadin.terminal.gwt.client.communication.ServerRpc;
import com.vaadin.terminal.gwt.client.ui.layout.RequiresOverflowAutoFix;
layoutManager.registerDependency(this, panel.contentNode);
}
+ @Override
+ public void onUnregister() {
+ VPanel panel = getWidget();
+ LayoutManager layoutManager = getLayoutManager();
+
+ layoutManager.unregisterDependency(this, panel.captionNode);
+ layoutManager.unregisterDependency(this, panel.bottomDecoration);
+ layoutManager.unregisterDependency(this, panel.contentNode);
+ }
+
@Override
public boolean delegateCaptionHandling() {
return false;
getWidget().captionWrapper.getElement());
}
+ @Override
+ public void onUnregister() {
+ getLayoutManager().unregisterDependency(this,
+ getWidget().captionWrapper.getElement());
+ }
+
@Override
protected Widget createWidget() {
return GWT.create(VTwinColSelect.class);
import com.vaadin.terminal.gwt.client.MouseEventDetails;
import com.vaadin.terminal.gwt.client.Paintable;
import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.Util;
import com.vaadin.terminal.gwt.client.communication.RpcProxy;
import com.vaadin.terminal.gwt.client.communication.ServerRpc;
import com.vaadin.terminal.gwt.client.ui.PanelConnector.PanelState;
@Component(value = com.vaadin.ui.Window.class)
public class WindowConnector extends AbstractComponentContainerConnector
- implements Paintable, BeforeShortcutActionListener, SimpleManagedLayout,
- PostLayoutListener, RequiresOverflowAutoFix {
+ implements Paintable, BeforeShortcutActionListener,
+ SimpleManagedLayout, PostLayoutListener, RequiresOverflowAutoFix {
public interface WindowServerRPC extends ClickRPC, ServerRpc {
}
getLayoutManager().registerDependency(this, getWidget().footer);
}
+ @Override
+ public void onUnregister() {
+ LayoutManager lm = getLayoutManager();
+ VWindow window = getWidget();
+ lm.unregisterDependency(this, window.contentPanel.getElement());
+ lm.unregisterDependency(this, window.header);
+ lm.unregisterDependency(this, window.footer);
+ }
+
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
getWidget().id = getConnectorId();
getWidget().client = client;