Components that subclass the View class inherit methods that help manage child objects, including their creation, layout, and destruction. This distinction is useful—almost critical—when you build components that hold other components or objects, especially when they must adhere to a certain layout that constrains them or when you don't know until runtime what kinds of objects the container holds.
The View class makes it much easier to develop container components because component authors don't need to worry about writing the code that handles the management of child objects. It's built-in.
Window, Loader, Accordion, Alert, and Label are all view components.
Although each view subclass can define its own functionality through specific methods, there are important methods that every View subclass should implement by convention:
size() when the size of a View subclass changes. While it's not required for all Views to implement, it is recommended that Views implement this method for their layout code.