Add {@link Component} to the graph.

@param component The root {@link Component} of this graph.
439327
public void setRootComponent(Component component) throws IllegalRootComponentException {
        if (component != null && component.getParent() != null) {
            throw new IllegalRootComponentException("A component with parent cannot be set as a graph's root component. Make sure the component doesn't parent.");
        }
        this.rootComponent = component;
    }
239613
public static void centerWindow(Component component) {

        Window window = getWindow(component);
        if (window != null) {
            window.center();
        }
    }
1251805
public void removeTaggedComponent(final WComponent component) {
		TemplateModel model = getOrCreateComponentModel();
		if (model.taggedComponents != null) {
			// Find tag
			String tag = null;
			for (Map.Entry<String, WComponent> entry : model.taggedComponents.entrySet()) {
				if (entry.getValue().equals(component)) {
					tag = entry.getKey();
					break;
				}
			}
			if (tag != null) {
				removeTaggedComponent(tag);
			}
		}
	}
152792
public void addToolbarComponent(BaseComponent component, String action) {
        BaseComponent ref = toolbar.getFirstChild();
        
        if (component instanceof Toolbar) {
            BaseComponent child;
            
            while ((child = component.getFirstChild()) != null) {
                toolbar.addChild(child, ref);
            }
            
        } else {
            toolbar.addChild(component, ref);
            ActionUtil.addAction(component, action);
        }
    }
891469
public void putComponent(String componentName,
      ServiceRecord record) throws
      IOException {
    putComponent(jstormServiceClass, instanceName,
        componentName,
        record);
  }
14786
public void addToGroup(final T component) {
		ComponentGroupModel model = getOrCreateComponentModel();
		model.components.add(component);
		MemoryUtil.checkSize(model.components.size(), this.getClass().getSimpleName());
	}
1131544
public void add(final WComponent component, final Serializable... constraints) {
		add(component);

		if (constraints != null && constraints.length > 0) {
			PanelModel model = getOrCreateComponentModel();

			if (model.layoutConstraints == null) {
				model.layoutConstraints = new HashMap<>();
			}

			model.layoutConstraints.put(component, constraints);
		}
	}
956212
public void setComponentConstraints(JComponent component)
    {
        GridBagConstraints c = this.getGBConstraints();
        GridBagLayout gridbag = (GridBagLayout)this.getScreenLayout();
        gridbag.setConstraints(component, c);
        
        Application application = BaseApplet.getSharedInstance().getApplication();
        MuffinManager muffinManager = application.getMuffinManager();
        if (component instanceof JTextComponent)
            if (muffinManager != null)
        {
            muffinManager.replaceClipboardAction(component, "cut");
            muffinManager.replaceClipboardAction(component, "copy");
            muffinManager.replaceClipboardAction(component, "paste");
        }        
    }
1113324
public function onComponentConfigure($component)
    {
        $this->onComponentsList();
        Breadcrumbs::register('component-configure', function($breadcrumbs) use($component) {
            $breadcrumbs->parent('components');
            $breadcrumbs->push('Configuration: ' . $component->getFullName());
        });
        view()->share('breadcrumbs', Breadcrumbs::render('component-configure'));
    }
603477
void add(final WComponent component) {
		assertAddSupported(component);
		assertNotReparenting(component);

		if (!(this instanceof Container)) {
			throw new UnsupportedOperationException("Components can only be added to a container");
		}

		ComponentModel model = getOrCreateComponentModel();

		if (model.getChildren() == null) {
			model.setChildren(new ArrayList<WComponent>(1));
		}

		model.getChildren().add(component);

		if (isLocked()) {
			component.setLocked(true);
		}

		if (component instanceof AbstractWComponent) {
			((AbstractWComponent) component).getOrCreateComponentModel().setParent((Container) this);
			((AbstractWComponent) component).addNotify();
		}
	}
1280798
protected <T extends IComponent> void addComponent(Class<T> componentType, T component) {
        components.put(componentType, component);
    }
1014335
protected function addToComponentTree($componentId, array $componentPath, array &$tree)
    {
        // If the component has to be placed in a subpath
        if (count($componentPath)) {
            $subpath = array_shift($componentPath);
            if (empty($tree[$subpath])) {
                $tree[$subpath] = [];
            }
            $this->addToComponentTree($componentId, $componentPath, $tree[$subpath]);

            return;
        }

        $tree[] = $componentId;
    }
286795
private void setTree(ComponentTree tree) {
        synchronized (this) {
            this.tree = tree;
            for (ComponentVertex child : children) {
                child.setTree(tree);
            }
        }
    }
740019
public void updateAllComponents(final AbstractField<?> component) {

        allComponents.add(component);
        component.addValueChangeListener(new ChangeListener(component));
    }
176540
public void surveyComponents(Component component)
    {
        // First, climb up and get the title from the frame.
        Component frame = component;
        while (frame != null)
        {
            if (frame instanceof Frame)
            {
                title = ((Frame)frame).getTitle();
                break;
            }
            frame = frame.getParent();
        }
        if (title == null)
            title = BLANK;
        // Now go through the components and line the printable ones up.
        Vector<Component> vector = new Vector<Component>();
        this.addComponents(((Container)component), vector);
        if (vector.size() == 0)
            vector.add(component);
        this.componentList = new Component[vector.size()];
        for (int i = 0; i < vector.size(); i++)
        {
            componentList[i] = (Component)vector.get(i);
        }
        
        this.resetAll();
    }
807053
private void close(Component component) {
	if (components.size() > 0) {
	  if (components.contains(component) == false) {
		return;
	  }

	  components.remove(component);
	  depths.remove(component);
	  getModalPanel().removeAll();
	  fireCloseActionListener(listeners.get(component));
	  listeners.remove(component);

	  if (components.size() > 0) {
		showNextComponent();
	  } else {
		restoreRootPane();
	  }
	}
  }
1232588
public Window addAsWindow(Component component) {

        // Have to use an array because Vaadin declarative tries to bind the field otherwise
        if (m_currentWindow[0] != null) {
            m_currentWindow[0].close();
            m_currentWindow[0] = null;
        }

        Window window = new Window();
        window.setContent(component);
        window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_GIT_SCRIPT_RESULTS_0));
        window.setWidth("1000px");
        window.setModal(true);
        window.setResizable(false);
        A_CmsUI.get().addWindow(window);

        m_currentWindow[0] = window;
        return window;
    }