Change method visibility.

Change method addComponent() visibility to public for inheritance.