If not Multiple-Contents, how do we have Widgets with multiple modes?


I'm following the specs evolving for Window Modes (http://dev.w3.org/2006/waf/widgets/#window-modes).
Given the fact that the "content tag" has an occurrence of "0 or 1", and the fact that the "mode" is one, my question is:
- Would it be possible to have widgets that have "multiple views"?

I dug into the "widgets-api", and what it looks like is the fact that the only place where the widget should handle "mode change" is the call-back named "onmodechange()".
That's fine.

But we are assuming that there is an "initial mode" chosen by the Developer and that the widget "change it's shape" based on the event "onmodechange".
- What if the Developer can't know in which mode the Widget will start?
- What if the "User-Agent" running the Widget does not pass a "onmodechange", because NO MODE WAS CHANGED: it was simply initialized with a mode different from the one chosen in the "config.xml"?

It's a bit "tricky" to explain, but I can give more details if needed.

One of the great thing of having "widgets with multiple modes", is the fact that the same widget can run in different scenarios, based on the hosting platform screen resolution AND other requirements. The widget has to adapt itself at "load time".
A widget that, for example, run in "window mode" and just after load has to change to "docked", because that's the mode supported by the current User-Agent, will look "clunky" and "not seamlessly integrated".

What do you think?

 <<Picture (Metafile)>> 
Ivan De Marino
Orange Labs
Mobile and Web Software Engineer, R&D UK
tel. +44 20 8849 5806
mob. +44 7515 955 861
mob. +44 7974 156 216
ivan.demarino@orange-ftgroup.com <mailto:firstname.lastname@orange-ftgroup.com> 
 <<Picture (Metafile)>> 

This e-mail, and any files transmitted with it, is intended only for the use of the person/s or entity to whom it is addressed. If you are not the intended recipient (or authorised to receive information for the intended recipient) you must not use, disclose, copy, print or rely on this e-mail. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and delete all copies of this e-mail.  Thank you.

France Telecom R&D UK Ltd is a company registered in England and Wales with company number 4193379. Our registered office is Minerva House, Montague Close, London, SE1 9BB.

Received on Monday, 9 February 2009 11:34:38 UTC