Hi Paolo,

You understood right.
The methods are looked for first in the UIProxy. Only if they are not found there, they are looked for within the corresponding Basic objects.

Now, you must be careful to specify your Basic object so that it can be recognized as such by your UI hals object.
You need to specify in the right way the  method  createBasicObject()


Here is an example extracted from the DateChooser porting to 6.1 (for the whole source code, have a look at http://ulc-community.canoo.com/ snipsnap/space/Contributions/Extensions/Date+Chooser).

protected Object createBasicObject(Object[] arguments){
       Locale locale = (Locale)arguments[0];
       String cancelButtonText = (String)arguments[1];
       Date initialDate = (Date)arguments[2];
       return new DateChooser(locale,cancelButtonText,initialDate);
    }

    public DateChooser getBasicDateChooser(){
        return (DateChooser)getBasicObject();
    }


Best regards
Sandro



On May 7, 2006, at 11:35 AM, Paolo Scaffardi wrote:

Hi! I'm trying to port my ULC application to last milestone.

On the "migration to new api" paragraph of the release notes i read
this: "Change all usages of ULCProxy.update() to use the new
ULCProxy.setStateUI() and related methods. [...] Ensure that
corresponding public methods on your UIProxy or basic object are available."

Reading this, it seemed to me that javabean-like reflection is used to
call remote methods, looking for that methods on both UIProxy and Basic
objects.

But i tried it, and i discovered that these methods are looked only on
UIProxy objects, but not on Basic objects.

Is it right or not?

Another question: what about writing new services with the new API (like audio and chipcard reader access)? The manual seems to only to have the
title of that paragraph but nothing more on it.

Thank you!

Bye,
Paolo Scaffardi
GFP Lab s.r.l.
http://www.gfplab.com
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to