Package com.vaadin.ui

Examples of com.vaadin.ui.TextField.focus()


        // The components added to the window are actually added to the window's
        // layout; you can use either. Alignments are set using the layout
        layout.addComponent(m_addButton);
        layout.setComponentAlignment(m_addButton, Alignment.MIDDLE_RIGHT);

        searchField.focus();
    }

    /**
     * Shows this dialog on the parent window.
     *
 
View Full Code Here


                    else {
                        m_log.log(LogService.LOG_WARNING, "Apache Ace WebUI invalid username or password entered.");

                        m_additionalInfo.setValue("Invalid username or password!");

                        nameField.focus();
                        nameField.selectAll();
                    }
                }
                finally {
                    button.setEnabled(true);
View Full Code Here

        content.addComponent(m_additionalInfo);
        content.addComponent(loginButton);

        content.setComponentAlignment(loginButton, Alignment.BOTTOM_CENTER);

        nameField.focus();
    }

    /**
     * Shows this login window on screen.
     *
 
View Full Code Here

            });
            // The components added to the window are actually added to the window's
            // layout; you can use either. Alignments are set using the layout
            layout.addComponent(close);
            layout.setComponentAlignment(close, Alignment.MIDDLE_RIGHT);
            search.focus();
      }
    }
   
    private void showAddArtifactDialog(final Window main) {
        final AddArtifactWindow featureWindow = new AddArtifactWindow(main);
View Full Code Here

    addComponent(password);

    final CheckBox rememberMe = new CheckBox("Remember Me");
    addComponent(rememberMe);

    username.focus();
   
    // TODO: Remove these two lines before production release
    username.setValue("admin");
    password.setValue("admin");
   
View Full Code Here

    initDescription();
  }

  protected void initUrl() {
    TextField urlField = new TextField(i18nManager.getMessage(Messages.RELATED_CONTENT_TYPE_URL_URL));
    urlField.focus();
    urlField.setRequired(true);
    urlField.setRequiredError(i18nManager.getMessage(Messages.RELATED_CONTENT_TYPE_URL_URL_REQUIRED));
    urlField.setWidth(100, UNITS_PERCENTAGE);
    // URL isn't mutable once attachment is created
    if(attachment != null) {
View Full Code Here

    form.addField("description", descriptionField);
  }

  protected void initName() {
    TextField nameField = new TextField(i18nManager.getMessage(Messages.RELATED_CONTENT_NAME));
    nameField.focus();
    nameField.setRequired(true);
    nameField.setRequiredError(i18nManager.getMessage(Messages.RELATED_CONTENT_NAME_REQUIRED));
    nameField.setWidth(100, UNITS_PERCENTAGE);
    form.addField("name", nameField);
  }
View Full Code Here

    initDescription();
  }

  protected void initUrl() {
    TextField urlField = new TextField(i18nManager.getMessage(Messages.RELATED_CONTENT_TYPE_URL_URL));
    urlField.focus();
    urlField.setRequired(true);
    urlField.setRequiredError(i18nManager.getMessage(Messages.RELATED_CONTENT_TYPE_URL_URL_REQUIRED));
    urlField.setWidth(100, UNITS_PERCENTAGE);
    // URL isn't mutable once attachment is created
    if(attachment != null) {
View Full Code Here

    form.addField("description", descriptionField);
  }

  protected void initName() {
    TextField nameField = new TextField(i18nManager.getMessage(Messages.RELATED_CONTENT_NAME));
    nameField.focus();
    nameField.setRequired(true);
    nameField.setRequiredError(i18nManager.getMessage(Messages.RELATED_CONTENT_NAME_REQUIRED));
    nameField.setWidth(100, UNITS_PERCENTAGE);
    form.addField("name", nameField);
  }
View Full Code Here

                            {
                                setSizeUndefined();
                                setMargin(true);
                                name.setValue(title.getValue());
                                addComponent(name);
                                name.focus();
                                name.selectAll();
                            }
                        });

                        addComponent(new HorizontalLayout() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.