More Related Content
Similar to Mashups as Collection of Widgets
Similar to Mashups as Collection of Widgets (20)
Mashups as Collection of Widgets
- 10. Describing widget presentation < window title =" BBC What's On "> < name > mainWindow </ name > < width > 315 </ width > < height > 600 </ height > < visible > true </ visible > < shadow > false </ shadow > < contextMenuItems > < menuItem > < name > api </ name > < title > Build your own using the BBC Web API </ title > < onSelect > openURL( "http://www0.rdthdo.bbc.co.uk/services/api/" ); </ onSelect > </ menuItem > </ contextMenuItems > </ window >
- 13. Describing the widget preferences < preferenceGroup name =" channelGroup " icon =" resources/BBC.png "> < title > Channel </ title > < order > 0 </ order > </ preferenceGroup > < preference name =" channelPref " hidden =" true " > < group > channelGroup </ group > < title > Choose Channel: </ title > < type > popup </ type > < defaultValue > 0 </ defaultValue > < option > BBC One </ option > < optionValue > 0 </ optionValue > < option > BBC Two </ option > < optionValue > 1 </ optionValue > </ preference >
- 15. BBC What's on Yahoo Widget <?xml version="1.0" encoding="UTF-8"?> < widget > < window title =" BBC What's On "> ... </ window > < about-box > ... </ about-box > < image src =" resources/bgTop.png "> ... </ image > < action trigger =" onLoad "> <![CDATA[ JS code implementing the action ]]> </ action > < action trigger =" onMouseEnter "> ... </ action > < timer name =" doChannelAnimation " interval =" .01 " ticking =" false "> < onTimerFired > <![CDATA[ JS code implementing the action ]]> </ onTimerFired > </ timer > ... </ widget >