Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT Custom Components & Viewers  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2 Questions.

Chapter 9 deals with Custom Controls. Are these custom widgets similar to creating a custom Swing Widget or is it something else?

Also, chapter 14 is Creating Viewers. What are viewers in this context?
 
Rob Warner
author
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chapter 9 covers the existing custom controls, but doesn't get into how to build your own custom controls. The custom controls are all in the org.eclipse.swt.custom package. The Eclipse team built these controls specifically to enhance the Eclipse GUI, but are free for the taking.

The Viewers in Chapter 14 are JFace's MVC layer on top of SWT widgets that present a view. For example, TableViewer is the JFace layer on top of SWT's Table widget. Using the viewers allows you to step back from managing the actual widget, and just provide classes for the model and the view that the widget calls as appropriate.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!