Widget's class hierarchy

StyledWidget and StyledComposite (in ej.library.ui#widget 2.x) have the following class hierarchy.


An object implementing the interface Renderable is an object that is intended to be rendered on the screen.


A Widget is the superclass of all the user interface objects.


A Composite, A composite is a widget that can contain other Widget instances. Each composite defines the layout of its children.


A Stylesheet associates a style to an Element. An Element also describes a hierarchy of Element.


A StyledRenderable represents a renderable with a style.

StyledWidget and StyledComposite

StyledWidget and StyledComposite are Widget and Composite that implement Element. Therefore, they contain a style (retrieved from the stylesheet), and apply boxing (margin, border, background, padding) before rendering their content.

1 Like