The Component class serves as the foundation for every u2 component, whether visual or non-visual. It provides essential infrastructure including a unique name for selection and automation, an effect/cleanup scope for resource management, and a widget introspection surface (DD7) generated from componentMeta.
Key architectural notes:
- Lifecycle: A component constructed inside another component's scope is automatically disposed of when that parent scope is disposed.
- Inheritance: In Datagrok,
DG.Widget extends Control, which in turn extends Component. Standalone hosts (such as tests or galleries) must call the dispose method directly.