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 – using a custom field factory

We are going to implement an editable table with two columns: Login and Password. We are very concerned about users' privacy, security, confidentiality, and protection. We have to protect passwords against intruders watching our screen. Follow the given steps:

  1. Create a new Vaadin project called fieldfactory.
  2. Now create a table with the two required properties and some testing rows:
    public class FieldfactoryUI extends UI {
    
      @Override
      protected void init(VaadinRequest request) {
        final VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        setContent(layout);
    
        Table table = new Table("Users");
        table.setPageLength(0);
        table.setEditable(true);
        table.addContainerProperty("Login", String.class, ...

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