Subclassing a viewform to be able to set controls to bottom left/center/right [message #466011] |
Wed, 28 December 2005 14:28  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07278 seconds