Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.KeyboardListenerAdapter


        amountBox.setText(widget.reformatContent());
        previewPanel.hide();
      }
    });

    amountBox.addKeyboardListener(new KeyboardListenerAdapter() {
      public void onKeyDown(Widget sender, char keyCode, int modifiers) {
        if (keyCode == (char) KEY_ENTER) {
          previewPanel.hide();
          amountBox.setText(widget.reformatContent());
        } else if (keyCode != (char) KEY_TAB) {
View Full Code Here


    addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        showCalendar();
      }
    });
    addKeyboardListener(new KeyboardListenerAdapter() {
      @Override
      public void onKeyPress(Widget sender, char keyCode, int modifiers) {
        if(keyCode == KeyboardListener.KEY_TAB || keyCode == KeyboardListener.KEY_ESCAPE) {
          hideCalendar();
        } else if(keyCode == KeyboardListener.KEY_ENTER) {
View Full Code Here

      @Override
      public void onClick(ClickEvent event) {
        showCalendar();
      }
    });
    textbox.addKeyboardListener(new KeyboardListenerAdapter() {
      @Override
      public void onKeyPress(Widget sender, char keyCode, int modifiers) {
        if (keyCode == KEY_TAB || keyCode == KEY_ESCAPE) {
          hideCalendar();
        } else if (keyCode == KEY_ENTER) {
View Full Code Here

                checkin.execute();
                pop.hide();
            }
        };
        save.addClickListener( cl );
        comment.addKeyboardListener(new KeyboardListenerAdapter() {
          @Override
          public void onKeyUp(Widget sender, char keyCode, int modifiers) {
            if (keyCode == KeyboardListener.KEY_ENTER) {
              cl.onClick(null);
            }
View Full Code Here

                data.content = text.getText();
                makeDirty();
            }
        } );

        text.addKeyboardListener( new KeyboardListenerAdapter() {
            public void onKeyDown(Widget arg0,
                                  char arg1,
                                  int arg2) {
                if ( arg1 == ' ' && arg2 == MODIFIER_CTRL ) {
                    showInTextOptions();
View Full Code Here

                }
            }
        };
        //choices.addChangeListener(cl);

        choices.addKeyboardListener(new KeyboardListenerAdapter() {

            @Override
            public void onKeyUp(final Widget sender, char keyCode, int modifiers) {
                if (keyCode == KeyboardListener.KEY_ENTER) {
                    cl.onChange(sender);
View Full Code Here

                    cmds.get(choices.getValue(sel)).execute();
                }
            }
        };

        choices.addKeyboardListener(new KeyboardListenerAdapter() {

            @Override
            public void onKeyUp(Widget sender, char keyCode, int modifiers) {
                if (keyCode == KeyboardListener.KEY_ENTER) {
                    cl.onClick(sender);
View Full Code Here

                    drop.setSelectedIndex( i );
                }
            }

        }
        drop.addKeyboardListener( new KeyboardListenerAdapter() {
            public void onKeyUp(Widget sender,
                                char keyCode,
                                int modifiers) {
                if ( keyCode == KeyboardListener.KEY_ENTER ) {
                    r.set( dataIdx,
View Full Code Here

        w.setPlain( true );
        w.setBodyBorder( false );
        w.setTitle( dta );
        final TextBox box = new TextBox();
        box.setText( val );
        box.addKeyboardListener( new KeyboardListenerAdapter() {
            public void onKeyUp(Widget sender,
                                char keyCode,
                                int modifiers) {
                if ( keyCode == KeyboardListener.KEY_ENTER ) {
                    r.set( dta,
View Full Code Here

                data.content = text.getText();
                makeDirty();
            }
        } );

        text.addKeyboardListener( new KeyboardListenerAdapter() {
            public void onKeyDown(Widget arg0,
                                  char arg1,
                                  int arg2) {
                System.err.println(arg1);
                if ( arg1 == KEY_TAB ) {
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.KeyboardListenerAdapter

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.