Esempio n. 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.");
  }
Esempio n. 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.");
    }
  }
Esempio n. 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.");
    }
  }
Esempio n. 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.");
    }
  }
Esempio n. 5
0
 /** Set the tooltips initial state on page load */
 private void setTooltipInitialState() {
   active.setVisible(false);
 }