RE: initclass bug

[email protected] Mon, 23 May 2005 15:12:56 -0400
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
I am still working on starting to use XUL. Even though I received much
resistance from the XUL community I am determined to figure this out. Then I
will horrify the XUL community like by answering questions and getting
beginners started like things always should have been.   



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Saturday, May 21, 2005 5:40 AM
To: [email protected]
Subject: Re: [Forum] initclass bug

List for Users of Carlsbad Cubes' Technologies and Products
<[email protected]> schrieb am 20.05.05 19:34:57:
> 
> Hi,
> 
> I am trying to use an initclass like the following:
> 
> <formattedtextfield columns="5"
> initclass="java.text.SimpleDateFormat(hh)"/>

No, the initclass does not accept arguments. The docu states "Class to
deliver initialization object", your argument is not only a class name.  You
may use the following mechanism to get your format into the
formattedtextfield:
Create a class like MyDateFormatProvider. Write a single public static
method named getInstance and return the desired format (either each time a
new instance or store it somewhere).

Hope it helps,

Frank




_______________________________________________
Forum mailing list
[email protected]
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com