Examples of KeyPressHandler


Examples of com.google.gwt.event.dom.client.KeyPressHandler

  }
 
  public ModulePresenter(final SimpleEventBus bus, final Display view) {
    this.view = view;
    for (HasKeyPressHandlers h : view.getAllFields()) {
      h.addKeyPressHandler(new KeyPressHandler() {
        @Override
        public void onKeyPress(KeyPressEvent event) {
          if (event.getCharCode() == KeyCodes.KEY_ENTER) {
            save(view);
          }
View Full Code Here

Examples of com.google.gwt.event.dom.client.KeyPressHandler

            public void onBlur(BlurEvent event) {
                setPrice(getText());
                setText(EveNumberFormat.PRICE_FORMAT.format(price));
            }
        }));
        handlerRegistrations.add(addKeyPressHandler(new KeyPressHandler() {
            @Override
            public void onKeyPress(KeyPressEvent event) {
                char charCode = event.getCharCode();
                if (!(Character.isDigit(charCode) || '.' == charCode)) {
                    cancelKey();
View Full Code Here

Examples of com.google.gwt.event.dom.client.KeyPressHandler

    tb = new Impl();
    setVisibleLen(visibleLength);
    tb.addValueChangeHandler(this);
    tb.addBlurHandler(this);
    setConverter(ToStringConverter.INSTANCE);
    addHandler(new KeyPressHandler() {

      public void onKeyPress(KeyPressEvent event) {
        if(event.getCharCode() == KeyCodes.KEY_ENTER) {
          setFocus(false);
          setFocus(true);
View Full Code Here

Examples of com.google.gwt.event.dom.client.KeyPressHandler

    curPageBox.setWidth("3em");
    curPageBox.setText("1");
    curPageBox.setTextAlignment(TextBoxBase.ALIGN_RIGHT);

    // Disallow non-numeric pages
    KeyPressHandler handler = new KeyPressHandler() {
      public void onKeyPress(KeyPressEvent event) {
        char charCode = event.getCharCode();
        if (charCode == KeyCodes.KEY_ENTER) {
          PagingOptions.this.table.gotoPage(getPagingBoxValue(), false);
        } else if (!Character.isDigit(charCode)
View Full Code Here

Examples of com.google.gwt.event.dom.client.KeyPressHandler

    guestNameLabel.addStyleName("gb-Label");
    guestMessageLabel.addStyleName("gb-Label");
    guestNameBox.addStyleName("gb-NameBox");
    guestMessageBox.addStyleName("gb-MessageBox");
    // Listen for keyboard events in the input box.
    guestMessageBox.addKeyPressHandler(new KeyPressHandler() {
      public void onKeyPress(KeyPressEvent event) {
        if (event.getCharCode() == KeyCodes.KEY_ENTER) {
          sign();
        }
      }
View Full Code Here

Examples of com.google.gwt.event.dom.client.KeyPressHandler

    RootPanel.get("container").add(mainPanel);

    mainPanel.add(userPanel);
    userPanel.add(tfParent);
    tfParent.setPlaceholder("Parent");
    tfParent.addKeyPressHandler(new KeyPressHandler() {
      @Override
      public void onKeyPress(KeyPressEvent event) {
        if (event.getCharCode() == KeyCodes.KEY_ENTER) {
          getNotes();
        }
View Full Code Here

Examples of com.google.gwt.event.dom.client.KeyPressHandler

    guestNameLabel.addStyleName("gb-Label");
    guestMessageLabel.addStyleName("gb-Label");
    guestNameBox.addStyleName("gb-NameBox");
    guestMessageBox.addStyleName("gb-MessageBox");
    // Listen for keyboard events in the input box.
    guestMessageBox.addKeyPressHandler(new KeyPressHandler() {
      public void onKeyPress(KeyPressEvent event) {
        if (event.getCharCode() == KeyCodes.KEY_ENTER) {
          sign();
        }
      }
View Full Code Here

Examples of com.google.gwt.event.dom.client.KeyPressHandler

    tb = new Impl();
    setVisibleLen(visibleLength);
    tb.addValueChangeHandler(this);
    tb.addBlurHandler(this);
    setConverter(ToStringConverter.INSTANCE);
    addHandler(new KeyPressHandler() {

      @Override
      public void onKeyPress(KeyPressEvent event) {
        if(event.getCharCode() == KeyCodes.KEY_ENTER) {
          setFocus(false);
View Full Code Here

Examples of com.google.gwt.event.dom.client.KeyPressHandler

    setVisibleLen(visibleLength);
    tb.addValueChangeHandler(this);
    tb.addFocusHandler(this);
    tb.addBlurHandler(this);
    // setConverter(ToStringConverter.INSTANCE);
    addHandler(new KeyPressHandler() {

      @Override
      public void onKeyPress(final KeyPressEvent event) {
        if(event.getCharCode() == KeyCodes.KEY_ENTER) {
          setFocus(false);
View Full Code Here

Examples of com.google.gwt.event.dom.client.KeyPressHandler

    setVisibleLen(visibleLength);
    tb.addValueChangeHandler(this);
    tb.addFocusHandler(this);
    tb.addBlurHandler(this);
    // setConverter(ToStringConverter.INSTANCE);
    addHandler(new KeyPressHandler() {

      @Override
      public void onKeyPress(final KeyPressEvent event) {
        if(event.getCharCode() == KeyCodes.KEY_ENTER) {
          setFocus(false);
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.