Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Vaadin 7 Cookbook
  • Table Of Contents Toc
Vaadin 7 Cookbook

Vaadin 7 Cookbook

By : Jaroslav Holan, Ondrej Kvasknovsky
4.3 (9)
close
close
Vaadin 7 Cookbook

Vaadin 7 Cookbook

4.3 (9)
By: Jaroslav Holan, Ondrej Kvasknovsky

Overview of this book

This is a cookbook with easy-to-follow recipes containing practical and detailed examples which are all fully backed up with code, illustrations, and tips. Vaadin 7 Cookbook is for developers who want to create Rich Internet Applications with Vaadin. Both newcomers to Vaadin and those who have some experience with it will find recipes to expand their working knowledge of Vaadin.
Table of Contents (19 chapters)
close
close
Vaadin 7 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1
Index

Testing a table with a container


What if we need to test more complicated components? One of the most complex components in Vaadin is the Table. Let's see a short example on how to verify that the items are properly shown without starting the Internet browser.

Before we start, let's introduce the code that we are going to test.

The domain model is going to be represented by the User class that will be shown in the table.

public class User {

    private String name;

    public User(String name) {
        this.name = name;
    }
    // getters and setters
}

The UserService class simulates a database call just by creating the list of users and returning it back. The content of the findAll() method can be replaced by a real database query from a real-world project.

public class UserService {

    public List<User> findAll() {
        List<User> res = new ArrayList<User>();
        res.add(new User("Jaromir Jagr"));
        res.add(new User("Wayne Gretzky"));
        res.add...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Vaadin 7 Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon