Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:28 Go to next message
Christopher Goy is currently offline Christopher GoyFriend
Messages: 38
Registered: July 2009
Member
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 18: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 16:45 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
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: Sun Jun 16 07:28:19 GMT 2019

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

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

Back to the top