Beispiel #1
0
  @UiHandler("usernameTextBox")
  void usernameTextBoxOnFocus(FocusEvent event) {
    active.setVisible(true);

    int x = getTooltipPosition(usernameTextBox)[0];
    int y = getTooltipPosition(usernameTextBox)[1];

    active.setGray();
    setTooltipPosition(x, y);
    setTooltipText("Optional Field. Enter username if you wish to create a superuser.");
  }
Beispiel #2
0
  @UiHandler("emailTextBox")
  void emailTextBoxOnFocus(FocusEvent event) {
    if (!emailTextBox.getStyleName().equals(deployer.redBorder())) {
      active.setVisible(true);

      int x = getTooltipPosition(emailTextBox)[0];
      int y = getTooltipPosition(emailTextBox)[1];

      active.setGray();
      setTooltipPosition(x, y);
      setTooltipText("Enter your email address.");
    }
  }
Beispiel #3
0
  @UiHandler("passwordConfirmTextBox")
  void passwordConfirmTextBoxOnFocus(FocusEvent event) {
    if (!passwordTextBox.getStyleName().equals(deployer.redBorder())) {
      active.setVisible(true);

      int x = getTooltipPosition(passwordConfirmTextBox)[0];
      int y = getTooltipPosition(passwordConfirmTextBox)[1];

      active.setGray();
      setTooltipPosition(x, y);
      setTooltipText("Confirm the previous password.");
    }
  }
Beispiel #4
0
  @UiHandler("passwordTextBox")
  void passwordTextBoxOnFocus(FocusEvent event) {
    if (!passwordTextBox.getStyleName().equals(deployer.redBorder())) {
      active.setVisible(true);

      int x = getTooltipPosition(passwordTextBox)[0];
      int y = getTooltipPosition(passwordTextBox)[1];

      active.setGray();
      setTooltipPosition(x, y);
      setTooltipText("Must be entered if your wish to create a superuser.");
    }
  }