Package com.google.gwt.event.dom.client

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


    final EntityStreamRegistration entityStreamRegistration
        = engine.getPeerState().addEntityStream(entityChangeStream);

    widget.setValue(entity.getState().get());

    HANDLER_REGISTRATION_MAP.put(widget, widget.addKeyDownHandler(new KeyDownHandler() {
      @Override
      public void onKeyDown(final KeyDownEvent event) {
        if (shouldIgnoreKeyPress(event)) {
          return;
        }
View Full Code Here


      urlPanel.addStyleName(styles.wizardMainColumn());
      Label urlLabel = new Label("Repository URL:");
      urlLabel.addStyleName(styles.wizardTextEntryLabel());
      urlPanel.add(urlLabel);
      txtRepoUrl_ = new TextBox();
      txtRepoUrl_.addDomHandler(new KeyDownHandler() {
         public void onKeyDown(KeyDownEvent event)
         {
            handleAutoFillCheckoutDir();
         }
      }, KeyDownEvent.getType());
View Full Code Here

                  }
               });
            }
         });
      
         findTextBox_.addKeyDownHandler(new KeyDownHandler() {

            @Override
            public void onKeyDown(KeyDownEvent event)
            {
               // we handle these directly so prevent the browser
View Full Code Here

          }
        });
      }
    } else {
      if (widgetValue instanceof TextBox) {
        ((TextBox) widgetValue).addKeyDownHandler(new KeyDownHandler() {
          @Override
          public void onKeyDown(KeyDownEvent event) {
            if (KeyCodes.KEY_ENTER == event.getNativeKeyCode()) {
              if (null != presenter) {
                presenter.onSave();
View Full Code Here

  }

  public AuthPresenter(final SimpleEventBus bus, final Display view) {
    this.view = view;
    view.setCurrentLocale(LocaleInfo.getCurrentLocale());
    view.getUsernameField().addKeyDownHandler(new KeyDownHandler() {
      @Override
      public void onKeyDown(KeyDownEvent event) {
        if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
          bus.fireEvent(new AuthEvent(view.getUsername(), view.getPassword()));
        }
      }
    });
    view.getPasswordField().addKeyDownHandler(new KeyDownHandler() {
      @Override
      public void onKeyDown(KeyDownEvent event) {
        if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
          bus.fireEvent(new AuthEvent(view.getUsername(), view.getPassword()));
        }
View Full Code Here

      @Override
      public void onClick(ClickEvent event) {
        save(view);
      }
    });
    view.getSearchBtn().addKeyDownHandler(new KeyDownHandler() {
      @Override
      public void onKeyDown(KeyDownEvent event) {
        AsyncProvider.getReadService(new Callback<ReadServiceAsync>() {
          @Override
          public void callback(ReadServiceAsync arg) {
View Full Code Here

      return;
    }
  }

  private void bind() {
    view.getLoginAsKeyHandler().addKeyDownHandler(new KeyDownHandler() {
      @Override
      public void onKeyDown(KeyDownEvent event) {
        if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
          tryLogin();
        }
View Full Code Here

    setGlassEnabled(true);
   
   


    this.addDomHandler(new KeyDownHandler() {
     
      @Override
      public void onKeyDown(KeyDownEvent event) {
        if (event.getNativeKeyCode() == 13) {
          doClick();
View Full Code Here

  private TextBox in;
 
  public ChatPanel() {
    super();
    in = new TextBox();
    in.addKeyDownHandler(new KeyDownHandler() {
     
      @Override
      public void onKeyDown(KeyDownEvent event) {
        if (event.getNativeKeyCode() == 13) {
          signalChatMessageEvent(in.getText());
View Full Code Here

        CalendarEvent e = getEventByWidget(w);
        startDateFrom = (Date) e.getStart().clone();
        startDateTo = (Date) e.getEnd().clone();

        Event.setCapture(getElement());
        keyDownHandler = addKeyDownHandler(new KeyDownHandler() {

            public void onKeyDown(KeyDownEvent event) {
                if (event.getNativeKeyCode() == KeyCodes.KEY_ESCAPE) {
                    cancelEventDrag(w);
                }
View Full Code Here

TOP

Related Classes of com.google.gwt.event.dom.client.KeyDownHandler

Copyright © 2018 www.massapicom. 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.