Re: subclassing WODisplayGroup
Re: subclassing WODisplayGroup
- Subject: Re: subclassing WODisplayGroup
- From: George Domurot <email@hidden>
- Date: Fri, 2 Jan 2004 10:24:33 -0500
Tom:
If you cast the variable back to a WODisplayGroup, you shouldn't have
any problem with WOBuilder.
protected MyWODisplayGroup displayGroup;
public WODisplayGroup displayGroup(){
return (WODisplayGroup)displayGroup;
}
On Jan 1, 2004, at 12:11 PM, Tom Woteki wrote:
> I would like to be able to subclass WODisplayGroup such that the
> "Display Group Options" configuration panel in WOBuilder is still
> available for any component that uses my subclass and such that the
> framework automatically initializes an instance of my subclass the way
> it can a WODisplayGroup.
>
> I've tried editing the .woo file for components as follows:
>
> {
> "WebObjects Release" = "WebObjects 5.0";
> encoding = NSMacOSRomanStringEncoding;
> variables = {
> aDisplayGroup = {
> class = MyWODisplayGroupSubclass; // or
> my.package.name.MyWODisplayGroupSubclass with and without quote marks
> etc......
> };};}
>
> but nothing seems to work.
>
> In addition to WOBuilder not being able to configure my display group,
> when the using WOComponent goes to set the variable aDisplayGroup
> above, I get a class exception error. WO expects to see an instance of
> my subclass but it is given an instance of WODisplayGroup, the parent
> class, instead. In other words, the "class" key in the .woo file seems
> to be ineffectual.
>
> Is what I am attempting possible, and if so how to do it?
>
> Thanks very much,
> Tom
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.