Change addComponent() method visibility.

Change addComponent() method visibility to public for components inheritance.