Example usage for com.vaadin.ui TextField TextField

List of usage examples for com.vaadin.ui TextField TextField

Introduction

In this page you can find the example usage for com.vaadin.ui TextField TextField.

Prototype

public TextField(ValueChangeListener<String> valueChangeListener) 

Source Link

Document

Constructs a new TextField with a value change listener.

Usage

From source file:de.mediapool.web.ui.login.MediaLoginFormSpring.java

License:Apache License

@Override
public Field createField(Item item, Object propertyId, Component uiContext) {
    String pid = (String) propertyId;
    if (pid.equals("password")) {
        PasswordField passwordField = new PasswordField("password");
        passwordField.setNullRepresentation("");
        return passwordField;
    } else if (pid.equals("email")) {
        TextField tf = new TextField("email");
        tf.setNullRepresentation("");
        return tf;
    }//from   w w  w . jav  a  2  s .c om
    return null;
}