O'Reilly logo

Swing Extreme Testing by Tim Lavers, Lindsay Peters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. Embedding User Interface Components in Server-side Classes

In our development of LabWizard, we've found a couple of design patterns to be really invaluable in terms of making the software simpler and easier to test. One of these is the use of handler interfaces, which we looked at in Chapter 6. In the present chapter, we'll look at the advantages of another well-known design pattern, which is making what are commonly thought of as server-side classes responsible for their own display.

Suppose that we are writing software in which there is the concept of a User. We will need to consider:

  • How User objects are persisted.

  • The runtime behavior of User objects.

  • The presentation of User objects on screen.

It is a fairly common practice for these ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required