Rendering Widgets
From Documentation
Rendering of widgets can be achieved using two methods. The first is named mold which enables a widget to have multiple display types which a developer or user can select at will. The second is a redraw method which only supports one type of view. Firstly let us discuss how to implement a mold.