Iliad: does a widget know of its application?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Iliad: does a widget know of its application?

Bèrto ëd Sèra
Hi!

I suppose the widget has a way to know in which application instance
it is contained, it would come handy if it did. My problem is the
following: in producing the abstract layer for localization I need to
address
1) the choice of the css file (RTL, LTR, etc)
2) text localization

1) is used by the application in #pageUpdate, but 2) is used in the
widgets. Now I'd rather have a single place in which language
processing is done, to have better maintanence. Would this be
possible?

Berto

--
==============================
Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement
viole les droits du peuple, l'insurrection est, pour le peuple et pour
chaque portion du peuple, le plus sacré des droits et le plus
indispensable des devoirs.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Iliad: does a widget know of its application?

Stefan Schmiedl
On Thu, 30 Jul 2009 18:18:57 +0300
Bèrto ëd Sèra <[hidden email]> wrote:

> Hi!
>
> I suppose the widget has a way to know in which application instance
> it is contained, it would come handy if it did.

st> Iliad.Widget methodDictionary keys asSortedCollection
... no
st> Iliad.Widget superclass methodDictionary keys asSortedCollection
... not yet
st> Iliad.Widget superclass superclass methodDictionary keys asSortedCollection
... there it is: an IliadObject knows its application!

s.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Iliad: does a widget know of its application?

Nicolas Petton
Le jeudi 30 juillet 2009 à 17:37 +0200, Stefan Schmiedl a écrit :

> On Thu, 30 Jul 2009 18:18:57 +0300
> Bèrto ëd Sèra <[hidden email]> wrote:
>
> > Hi!
> >
> > I suppose the widget has a way to know in which application instance
> > it is contained, it would come handy if it did.
>
> st> Iliad.Widget methodDictionary keys asSortedCollection
> ... no
> st> Iliad.Widget superclass methodDictionary keys asSortedCollection
> ... not yet
> st> Iliad.Widget superclass superclass methodDictionary keys asSortedCollection
> ... there it is: an IliadObject knows its application!
In fact, IliadObject knows about the current application, request and
context. And because almost all iliad objects are subclasses of
IliadObject, those objects are accessible from almost everywhere.

Cheers!

Nico

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (204 bytes) Download Attachment