O'Reilly logo

Vaadin 7 UI Design By Example Beginner's Guide by Alejandro Duarte

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

Time for action – implementing the game UI

We are ready to implement the UI part of the game. We will code everything in five methods: init (to initialize and wire up all the UI components), itemClick (to handle the clicks the user makes on the table), nextTurn (to update the UI on each turn), gameOver (to show the results when the game finishes), and getWords (that will return a collection with the correct words in the table). The steps for implementing the UI part of the game are as follows:

  1. First step as always is to create a new Vaadin project. We are using boxwords for the name of the project.
  2. Browse the book's source code and copy the Dictionary and Game classes and paste them beside your BoxwordsUI class. These classes implement the business ...

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