Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Subclassing not allowed. SWT  RSS feed

 
Valery Lezhebokov
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to wide the functionality of swt List by adding a couple of extra methods, but it says �Subclassing not allowed�. I can override checkSubclass to make it omit the deriving check, but as I understood that�s not recommended. How actually dangerous is it and what is another way to extend standard widget functionality.
Thanks in advice.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!