So far, we have covered the theory and approach behind widgets. Let's create the sample widget whose behavior has been used as the example to explain widget architecture. We will develop, test, and deploy this Birthday Widget.
Each Birthday Widget instance will show a name, the date of the next birthday, and how many days from today until the birthday. It will also create an
onClick area where you can click to buy gifts. This click will open a browser and take you to
The layout of the finished widget should look like Figure 25–5.
The implementation of this ...