Package com.vaadin.ui

Examples of com.vaadin.ui.PasswordField


        TextField email = new TextField("Email address");
        email.setInputPrompt("Enter email");
        form.addComponent(email);

        PasswordField password = new PasswordField("Password");
        password.setInputPrompt("Password");
        form.addComponent(password);

        Upload upload = new Upload("File input", null);
        form.addComponent(upload);
View Full Code Here


@Widgetset(TestingWidgetSet.NAME)
public class ReducingRoundTrips extends AbstractTestUI {
    @Override
    protected void setup(VaadinRequest request) {
        PasswordField passwordField = new PasswordField("Enter password");
        passwordField.setImmediate(true);
        CapsLockWarningWithRpc capsLockWarningWithRpc = new CapsLockWarningWithRpc();

        capsLockWarningWithRpc.extend(passwordField);

        addComponent(passwordField);
View Full Code Here

        fields.add(tt);
        Tree tree = new Tree();
        tree.addItem("Item 1");
        fields.add(tree);
        fields.add(new TwinColSelect());
        fields.add(new PasswordField());
        fields.add(new TextField());
        fields.add(new TextArea());
        fields.add(new RichTextArea());
        fields.add(new CheckBox());
        fields.add(new Slider());
View Full Code Here

@Widgetset(TestingWidgetSet.NAME)
public class CapsLockWarningUI extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        PasswordField field = new PasswordField("Enter your password");
        CapsLockWarning.warnFor(field);

        addComponent(field);
    }
View Full Code Here

        user.addValidator(new EmailValidator(
                "Username must be an email address"));
        user.setInvalidAllowed(false);

        // Create the password input field
        password = new PasswordField("Password:");
        password.setWidth("300px");
        password.addValidator(new PasswordValidator());
        password.setRequired(true);
        password.setValue("");
        password.setNullRepresentation("");
View Full Code Here

        mainWindow.setCaption("Please login");

        FormLayout formLayout = new FormLayout();
        final TextField userField = new TextField("Username");
        userField.setId("user");
        final PasswordField passwordField = new PasswordField("Password");
        passwordField.setId("pwd");
        Button login = new Button("login");
        login.setId("loginButton");
        login.setClickShortcut(KeyCode.ENTER);
        formLayout.addComponent(userField);
        formLayout.addComponent(passwordField);
        formLayout.addComponent(login);
        mainWindow.setContent(formLayout);

        login.addListener(new ClickListener() {
            @Override
            public void buttonClick(final ClickEvent event) {
                String username = userField.getValue();
                String password = passwordField.getValue();

                user = username;
                showMainWindow();
            }
        });
View Full Code Here

        Layout layout = new VerticalLayout();

        final TextField email = new TextField("Email");
        layout.addComponent(email);

        final PasswordField password = new PasswordField("Password");
        layout.addComponent(password);

        final Button login = new Button("Login", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
View Full Code Here

        TextArea ta = new TextArea();
        ta.setId("textfield" + debugIdCounter++);
        addComponent(ta);

        PasswordField pf = new PasswordField();
        pf.setId("textfield" + debugIdCounter++);
        addComponent(pf);

        RichTextArea rta = new RichTextArea();
        rta.setId("textfield" + debugIdCounter++);
        addComponent(rta, 0, 1, 6, 1);
View Full Code Here

    private void createComponents() {
        components.add(new TextField("Default TextBox"));
        components.add(new TextArea("Default TextArea."));
        // components.add(new RichTextArea("Default RichtTextArea"));
        components.add(new PasswordField("Default Password"));
        components.add(new DateField("Default DateField"));

        // PopupDateField popupDateField = new
        // PopupDateField("Default DateField");
        // popupDateField.setTextFieldEnabled(false);
View Full Code Here

        tf = new TextField("Centered");
        tf.setInputPrompt("Guess what?");
        tf.addStyleName("align-center");
        row.addComponent(tf);

        PasswordField pwf = new PasswordField("Password");
        pwf.setInputPrompt("Secret words");
        pwf.addStyleName("inline-icon");
        pwf.setIcon(FontAwesome.LOCK);
        row.addComponent(pwf);

        pwf = new PasswordField("Password, right-aligned");
        pwf.setInputPrompt("Secret words");
        pwf.addStyleName("inline-icon");
        pwf.addStyleName("align-right");
        pwf.setIcon(FontAwesome.LOCK);
        row.addComponent(pwf);

        pwf = new PasswordField("Password, centered");
        pwf.setInputPrompt("Secret words");
        pwf.addStyleName("inline-icon");
        pwf.addStyleName("align-center");
        pwf.setIcon(FontAwesome.LOCK);
        row.addComponent(pwf);

        tf = new TextField("Tiny");
        tf.setValue("Field value");
        tf.addStyleName("tiny");
View Full Code Here

TOP

Related Classes of com.vaadin.ui.PasswordField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.