/** * Removes the given component from the container. * * @param c the component to remove * @see #remove(org.wings.SComponent) */ public void remove(SComponent c) { if (c == null) return; if (layout != null) layout.removeComponent(c); int index = getComponentList().indexOf(c); if (getComponentList().remove(c)) { getConstraintList().remove(index); c.removeNotify(); fireContainerEvent(SContainerEvent.COMPONENT_REMOVED, c); c.setParent(null); reload(); } }
fireContainerEvent(SContainerEvent.COMPONENT_ADDED, c);