List of usage examples for com.vaadin.ui TextField TextField
public TextField(ValueChangeListener<String> valueChangeListener)
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; }