RE: getContext

"Goldsack, Patrick" <[email protected]>
Newsgroups gmane.comp.java.smartfrog.user
Message-ID <[email protected]>
Andreas,

In addition, you should note that ComponentDescription now supports the full
range of sfResolve methods - identical to Prim. Further, both Prim and
ComponentDescritpion now offer iterators over the set of attributes (as
opposed to enumerators over the context). This means that there is now no
longer any requirement to access the context directly.

This should clean up considerably the programming model for handling
ComponentDescriptions in particular.

Patrick


-----Original Message-----
From: smartfrog-support-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-support-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Guijarro, Julio
Sent: 25 August 2004 00:25
To: Andreas Unterkircher; smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: RE: [Smartfrog-support] getContext


Hi Andreas,

getContext in ComponentDescription has been renamed to sfContext.

The same happens with getParent that has been renamed to sfParent.

The changes are described in the released notes or in the changes.txt.

These changes are to unify the interfaces: ComponentDescription and Prim

I haven't updated the manual yet. But I will do it as soon as possible.

Let me know if you have any more problems to migrate your code.

Julio Guijarro

> -----Original Message-----
> From: smartfrog-support-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:smartfrog- 
> [email protected]] On Behalf Of Andreas Unterkircher
> Sent: 24 August 2004 16:36
> To: smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: [Smartfrog-support] getContext
> 
> 
> I just installed the new SmartFrog.3.04.004.beta and tried to compile 
> some of our code. The following lines fail:
> 
> ComponentDescription var = (ComponentDescription) sfResolve(ATR_VAR); 
> Context c = var.getContext();
> 
> I checked the javadoc and saw that the getContext() method 
> disappeared. The sfReference manual coming with 
> SmartFrog.3.04.004.beta is still the one for 3.02. Could I get the new 
> manual to see how to port our code ?
> 
> Thanks,
> Andreas
> 
> 


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk
Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off
Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Smartfrog-support mailing list Smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-support


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.