Re: XulManager and XulContext

Gerald Bauer <[email protected]> Thu, 27 Nov 2003 15:20:29 -0800 (PST)
Newsgroups gmane.comp.java.luxor-xul.user
Message-ID <[email protected]>
Hi Denis,

> I was wondering why the XulContext is mixed with the
> XulManager? Perhaps I am missing the point of what
> the
> context is...

  Well, as far as i can tell XulContext holds all
lookup methods. The point of using interfaces for
lookup methods is so you can plugin your own. 

> I would have thought that the context would have
> been
> contextual to the Box or Container, but it looks
> like
> it is global to the whole application, no?

  Yeah, for now the context is sort of global.
However, since the lookup interfaces are plugable you
can create your own lookup stack.
 
> (in fact I though the XulContext could be used to
> store a reference to the XulForm)

  Well, as far as I can tell for now XulContext only
does lookups. 

  If I get your point it makes sense to keep track of
XulForms and allow lookup using the XulContext.
However, as far as I can tell you need to add a new
interface and a new hashmap.

  Sounds like a good idea. Just go ahead and try it
out.

  - Gerald


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/