protected void detachFromFrame(Component childComponent) { ((FrameImplementation) frame).unregisterComponent(childComponent); }
@Override public void setId(String id) { if (!Objects.equals(this.id, id)) { if (frame != null) { ((FrameImplementation) frame).unregisterComponent(this); } this.id = id; AppUI ui = AppUI.getCurrent(); if (ui != null) { if (this.component != null && ui.isTestMode()) { this.component.setCubaId(id); } } if (frame != null) { ((FrameImplementation) frame).registerComponent(this); } } }