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, ...

Get Vaadin 7 UI Design By Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.