[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [platform-swt-dev] Subclassing Widgets..
|
Title: Message
Samir,
I think it is arguable whether or not it is 'the right way'
in Java with respect to composition and inheritance - although it has its
purpose, many times subclassing is much more fragile. One advantage that
SWT objects have is that their internal structure can be changed because it is
not part of the 'contract' for external developers. Either way, this
discussion is probably more appropriate for the newsgroups, as SWT and
subclassing is a common discussion.
R.J.
Steve,
I read the document and understand the consequences of subclassing. But
the Subclassing is a feature of any object-oriented language and when someone creates a subclass he/she is aware of
consequences the subclassing can have. In my case I wanted to subclass the
component to add some extra features like my custom table with few predefined
menu whose functionality is fixed. These things can be achieved from composition
but that is not the right way to do in case of
Java.
Thanx
-
Samir
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/faq.html#subclassing
"Samir Kumar Mishra"
<smishra@xxxxxxxxxxxx> Sent by: platform-swt-dev-admin@xxxxxxxxxxx
11/22/2004 06:40 PM
Please respond
to platform-swt-dev |
|
To
| <platform-swt-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| [platform-swt-dev]
Subclassing Widgets.. |
|
It is sad to learn today that SWT does not allow
subclassing the Widgets. Can somebody throw some light on it as why this is
being restricted?
Thanx
- Samir