@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."); }
@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."); } }
@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."); } }
@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."); } }