com.google.gwt.user.client.ui.PasswordTextBox Java Examples

The following examples show how to use com.google.gwt.user.client.ui.PasswordTextBox. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MockPasswordTextBox.java    From appinventor-extensions with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new MockPasswordTextBox component.
 *
 * @param editor editor of source file the component belongs to.
 */
public MockPasswordTextBox(SimpleEditor editor) {
  super(editor, TYPE, images.passwordtextbox());

  // Initialize mock PasswordTextBox UI.
  passwordTextBoxWidget = new PasswordTextBox();
  // Change PasswordTextBox text so that it doesn't show up as a blank box in the designer.
  passwordTextBoxWidget.setText("**********");
  initWrapper(passwordTextBoxWidget);
}
 
Example #2
Source File: SignInPageView.java    From core with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Inject
public SignInPageView() {
    userNameField = new TextBox();
    passwordField = new PasswordTextBox();
    signInButton = new Button("Sign in");
    signInButton.setStyleName("default-button");

    userNameField.setText("admin");

    panel.add(userNameField, "userNameFieldContainer");
    panel.add(passwordField, "passwordFieldContainer");
    panel.add(signInButton, "signInButtonContainer");

    panel.sinkEvents(Event.ONKEYDOWN);

    // dev options
    /*checkbox = new CheckBox();
    checkbox.addClickHandler(new ClickHandler(){
        @Override
        public void onClick(ClickEvent event) {
            presenter.setBootStandalone(checkbox.getValue());
        }
    });
    */
    HorizontalPanel options = new HorizontalPanel();
    options.getElement().setAttribute("style", "margin-top:20px; vertical-align:bottom;");
    options.getElement().setAttribute("align", "center");

    HTML version = new HTML("Version TBD");
    version.getElement().setAttribute("style", "color:#cccccc;font-size:10px; align:center");
    options.add(version);
    panel.add(options);

}
 
Example #3
Source File: AccountView.java    From EasyML with Apache License 2.0 4 votes vote down vote up
public PasswordTextBox getOldPwd(){
	return oldPwd;
}
 
Example #4
Source File: AccountView.java    From EasyML with Apache License 2.0 4 votes vote down vote up
public PasswordTextBox getNewPwd(){
	return newPwd;
}
 
Example #5
Source File: AccountView.java    From EasyML with Apache License 2.0 4 votes vote down vote up
public PasswordTextBox getVerPwd(){
	return verPwd;
}
 
Example #6
Source File: MockPasswordTextBox.java    From appinventor-extensions with Apache License 2.0 4 votes vote down vote up
ClonedPasswordTextBox(PasswordTextBox ptb) {
  // Get the Element from the PasswordTextBox.
  // Call DOM.clone to make a deep clone of that element.
  // Pass that cloned element to the super constructor.
  super(DOM.clone(ptb.getElement(), true));
}
 
Example #7
Source File: InputPassword.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
public InputPassword() {
	super(new PasswordTextBox());

	this.setParser(StringParser.get());
	this.setRenderer(StringRenderer.get());
}
 
Example #8
Source File: InputPassword.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
protected InputPassword(InputPassword source) {
	super(new PasswordTextBox(), source);
}