Thanks you, Janak, for your reply, that that you write to me is very important for me. Now I'm reading the Extension Guide and I'll write you if I'll have other problems. However, that that I would do is create dinamicall windows (with button, label, text box, etc.) by reading xml files. For this I thought to use the superclass ULCContainer that is the generalization of ULC*Pane Class. Thanks you very much. Luigi
>----Messaggio originale---- >Da: [EMAIL PROTECTED] >Data: 05/10/2006 18.53 >A: <[EMAIL PROTECTED]> >Cc: <[email protected]> >Ogg: RE: [ULC-developer] error when I extend ULCContainer class > >Hi Luigi, > >There are two ways in which you can extend a ULC Widget: > >1. Java "extends": you extend a ULC widget to specialize the server side. e.g. MyULCButton extends ULCButton. Here there is no need to specify the typeString() method as you are not interested in specializing client side behavior. > >2. ULC extension: you extend a ULC Widget to specialise it on both the server and client side. For this you need to create two half objects (see the ULC extension Guide). For instance: > >Server side class (typeString returns the name of the client side proxy class): > >ULCMySpecialButton extends ULCButton { > > public String typeString() { > return "my.package.ulc.client.UIMySepcialButton"; > } >} > >Client side class: > >UIMySpecialButton extends UIButton { >..... >} > >Please tell which type of extension do you have in mind? What is the purpose of your extension? > >Also note that ULCContainer is an abstract class. > >I hope this helps. > >Thanks and regards, > >Janak > > >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Behalf Of Luigi >>Santangelo >>Sent: Wednesday, October 04, 2006 10:10 PM >>To: [email protected] >>Subject: [ULC-developer] error when I extend ULCContainer class >> >> >>Hi all, I created the CPanel class that exteds ULCContainer class: >> >>public class CPanel extends ULCContainer >> { >> >> >> public String typeString() >> { >> >> return "my.package.CPanel"; >> >> } >> >> >> >> public CPanel() >> >> { >> >> super (); >> >> [cut] >> } >> >> [cut] >>} >> >>but when I invoke the creation of CPanel object (from another class) >>this error occours: >> >>1 20.09.2005 02:07:49.182 1.000 SEVERE >>Thread[AWT-EventQueue-1,6, >>main] com.ulcjava.base.client.UISession b got exception while >>processing [java.lang.NullPointerException >> at com.ulcjava.base.application.ClientContext.getFont (ClientContext. >>java:73) >> at >>com.ulcjava.base.application.ULCComponent.<init>(ULCComponent.java: >>159) >> at >>com.ulcjava.base.application.ULCContainer.<init>(ULCContainer.java: >>15) >> at CPanel.<init>(CPanel.java:22) >> [cut] >> >>what is the font that I must to set? Where is the error? Tanks all in >>advance. >> >> Luigi Santangelo >>Websysco.com - Pavia (Italy) >> >> >>Naviga e telefona senza limiti con Tiscali >>Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom >> >>http://abbonati.tiscali.it/adsl/ >> >>_______________________________________________ >>ULC-developer mailing list >>[email protected] >>http://lists.canoo.com/mailman/listinfo/ulc-developer >> > > Naviga e telefona senza limiti con Tiscali Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom http://abbonati.tiscali.it/adsl/ _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
