/** * Removes the component from the content pane. */ @Override public void remove(SComponent c) { contentPane.remove(c); }
/** * Removes the child component, <code>component</code> from the * pane. Resets the <code>leftComponent</code> or * <code>rightComponent</code> instance variable, as necessary. * * @param component the <code>SComponent</code> to remove */ @Override public void remove(SComponent component) { if (component == leftComponent) { leftComponent = null; } else if (component == rightComponent) { rightComponent = null; } super.remove(component); }
public void addSingletonComponent(SComponent component, Object constraint) { if (VIEWPORT.equals(constraint)) { if (viewport != component) { container.remove(viewport); } viewport = component; } else if (NORTH.equals(constraint)) { if (viewport != component) { container.remove(north); } north = component; } else if (WEST.equals(constraint)) { if (viewport != component) { container.remove(west); } west = component; } else if (EAST.equals(constraint)) { if (viewport != component) { container.remove(east); } east = component; } else if (SOUTH.equals(constraint)) { if (viewport != component) { container.remove(south); } south = component; } }
/** * Removes all components from the container. */ public void removeAll() { while (getComponentCount() > 0) { remove(0); } }
@Override public void remove(SComponent c) { super.remove(c); ((SInternalFrame)c).removeInternalFrameListener(listener); }
/** * Removes the component at the given position from the container. * * @param index remove the component at position <i>index</i> * from this container */ public void remove(int index) { SComponent c = getComponent(index); remove(c); }
private void removePageAt(int i) { contents.remove(((Page) pages.get(i)).component); pages.remove(i); reload(); }
/** * Sets the container for the contentPane. * * @param container the container for the contentPane. */ public void setContentPane(SContainer container) { SContainer oldVal = this.contentPane; if (this.contentPane != null) { super.remove(contentPane); } this.contentPane = container; super.addComponent(this.contentPane, null, 0); propertyChangeSupport.firePropertyChange("contentPane", oldVal, this.contentPane); }
/** * Sets the container for the windowsPane. ! This is not like in swing. Each window object is bound to its frame or internal frame. * * @param windowsPane The container for the windowsPane. */ protected void setWindowsPane(SContainer windowsPane) { SContainer oldVal = this.windowsPane; if (this.windowsPane != null) { super.remove(this.windowsPane); } this.windowsPane = windowsPane; super.addComponent(this.windowsPane, null, 1); propertyChangeSupport.firePropertyChange("windowsPane", oldVal, this.windowsPane); }
/** * Removes the <code>SComponent</code> at the specified index. * Updates the <code>leftComponent</code> and <code>rightComponent</code> * instance variables as necessary, and then messages super. * * @param index an integer specifying the component to remove, where * 1 specifies the left/top component and 2 specifies the * bottom/right component */ @Override public void remove(int index) { SComponent comp = getComponent(index); if (comp == leftComponent) { leftComponent = null; } else if (comp == rightComponent) { rightComponent = null; } super.remove(index); }
/** * Sets the component at <i>index</i> to <i>component</i> which must not be null. * An internal exception is raised if there is no tab at that index. * * @param index the tab index where the title should be set * @param component the component for the tab * @see #getComponentAt */ public void setComponentAt(int index, SComponent component) { contents.remove(index); SComponent oldVal = ((Page) pages.get(index)).component; ((Page) pages.get(index)).component = component; contents.add(component, component.getName(), index); component.setVisible(getSelectedIndex() == index); reload(); propertyChangeSupport.firePropertyChange("componentAt", oldVal, ((Page) pages.get(index)).component); }
/** * Removes the specified menu from the menu bar. * * @param menu the SMenu component to remove */ public void remove(SMenu menu) { getSession().getMenuManager().deregisterMenuLink(menu, this); super.remove(menu); }
public SComponent removeComponent(String name) throws ServletException { SFrame frame = getFrame(this); SComponent component = (SComponent) removeProperty(name); frame.getContentPane().remove(component); return component; }
/** * Sets the component at <i>index</i> to <i>component</i>. * An internal exception is raised if there is no tab at that index. * * @param index the tab index where this component is being placed * @param component the component for the tab * @see #getComponent(int) */ public void setComponent(int index, SComponent component) { Page page = (Page) pages.get(index); SComponent oldVal = page.component; if (component != page.component) { if (page.component != null) { contents.remove(page.component); } page.component = component; contents.addComponent(page.component, page.component.getName()); if (getSelectedIndex() == index) card.show(component); reload(); propertyChangeSupport.firePropertyChange("component", oldVal, page.component); } }
public void removeWindow(SWindow window) { if (!windowsPane.getComponentList().contains(window)) { return; } getSession().getReloadManager().setSuppressMode(true); windowsPane.remove(window); getSession().getReloadManager().setSuppressMode(false); if (isUpdatePossible() && SRootContainer.class.isAssignableFrom(getClass())) { update(((RootContainerCG) getCG()).getRemoveWindowUpdate(windowsPane, window)); } else { windowsPane.reload(); } }
} else { c.getParent().remove(c);
super.remove((SComponent) horizontalScrollBar);
super.remove((SComponent) verticalScrollBar);