import com.vaadin.ui.Field;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
+import com.vaadin.ui.PasswordField;
import com.vaadin.ui.TextField;
import com.vaadin.ui.Tree;
import com.vaadin.ui.Window;
private final TextField username = new TextField("Username");
- private final TextField loginPwd = new TextField("Password");
+ private final PasswordField loginPwd = new PasswordField("Password");
private final Button loginButton = new Button("Login", this, "loginClicked");
customLayoutPanel.addComponent(mainLayout);
// Login components
- loginPwd.setSecret(true);
mainLayout.addComponent(username, "loginUser");
mainLayout.addComponent(loginPwd, "loginPassword");
mainLayout.addComponent(loginButton, "loginButton");
protected Command<Table, Alignments> columnAlignmentCommand = new Command<Table, Alignments>() {\r
\r
public void execute(Table c, Alignments value, Object data) {\r
- for (Object propertyId : c.getContainerPropertyIds()) {\r
- // TODO\r
- }\r
+ // TODO\r
+ // for (Object propertyId : c.getContainerPropertyIds()) {\r
+ // }\r
}\r
};\r
\r
CheckBox ml = new CheckBox("Multiline");
ml.setImmediate(true);
ml.addListener(new Property.ValueChangeListener() {
+ @SuppressWarnings("deprecation")
public void valueChange(ValueChangeEvent event) {
if (tf.getHeight() < 0) {
tf.setHeight("50px");