Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Subclassing a viewform to be able to set controls to bottom left/center/right
Subclassing a viewform to be able to set controls to bottom left/center/right [message #466011] Wed, 28 December 2005 14:28 Go to next message
Eclipse UserFriend
Hello everyone,
I want to extend ViewForm in order to add methods to enable the setting of
controls to the bottom left/center/right instead of just top
left/center/right. In the java doc it said this class is not intended to be
subclassed. Does this mean, do not subclass, or its not intended to be
subclassed but you can if you want to? Thanks

Chris
Re: Subclassing a viewform to be able to set controls to bottom left/center/right [message #466045 is a reply to message #466011] Thu, 29 December 2005 13:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shawn666.liu.gmail.com

I saw the method
protected void checkSubclass ()
is commented in SWT source code.

That means you can if you want to.

Another way is:
don't import the official ViewForm, but copy its content to your own
ViewForm class and do modifications.

"Christopher Goy" <goy@21csi.com> says:dououn$8bj$1@utils.eclipse.org...
> Hello everyone,
> I want to extend ViewForm in order to add methods to enable the setting of
> controls to the bottom left/center/right instead of just top
> left/center/right. In the java doc it said this class is not intended to
> be subclassed. Does this mean, do not subclass, or its not intended to be
> subclassed but you can if you want to? Thanks
>
> Chris
>
Re: Subclassing a viewform to be able to set controls to bottom left/center/right [message #466139 is a reply to message #466045] Tue, 03 January 2006 11:45 Go to previous message
Eclipse UserFriend
ViewForm is not intended to be subclassed. Since the methods you would need
to override to layout additional buttons are package protected, overriding
checkSubclass () will not help you.

"Shawn Liu" <shawn666.liu@gmail.com> wrote in message
news:dp1ae8$mig$1@utils.eclipse.org...
>I saw the method
> protected void checkSubclass ()
> is commented in SWT source code.
>
> That means you can if you want to.
>
> Another way is:
> don't import the official ViewForm, but copy its content to your own
> ViewForm class and do modifications.
>
> "Christopher Goy" <goy@21csi.com> says:dououn$8bj$1@utils.eclipse.org...
>> Hello everyone,
>> I want to extend ViewForm in order to add methods to enable the setting
>> of controls to the bottom left/center/right instead of just top
>> left/center/right. In the java doc it said this class is not intended to
>> be subclassed. Does this mean, do not subclass, or its not intended to
>> be subclassed but you can if you want to? Thanks
>>
>> Chris
>>
>
>
Previous Topic:saving browser image at 300 dpi
Next Topic:Viwer with SWT.VIRTUAL no sorting or filtering
Goto Forum:
  


Current Time: Wed Jul 23 11:12:53 EDT 2025

Powered by FUDForum. Page generated in 0.07278 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top