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

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


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

        text.addKeyDownHandler(new KeyDownHandler() {

            public void onKeyDown(KeyDownEvent event) {
                if (event.getNativeKeyCode() == KeyCodes.KEY_TAB) {
                    event.preventDefault();
                    event.stopPropagation();
View Full Code Here


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

        editorArea.addKeyDownHandler(new KeyDownHandler() {

            public void onKeyDown(KeyDownEvent event) {
                if (event.getNativeKeyCode() == KeyCodes.KEY_TAB) {
                    event.preventDefault();
                    event.stopPropagation();
View Full Code Here

                                              boolean isReadOnly ) {
        super( isReadOnly );
        this.listBox = new ListBox();

        // Tabbing out of the ListBox commits changes
        listBox.addKeyDownHandler( new KeyDownHandler() {

            public void onKeyDown( KeyDownEvent event ) {
                boolean keyTab = event.getNativeKeyCode() == KeyCodes.KEY_TAB;
                boolean keyEnter = event.getNativeKeyCode() == KeyCodes.KEY_ENTER;
                if ( keyEnter || keyTab ) {
View Full Code Here

        this.listBox = new ListBox( isMultipleSelect );
        setItems( items );

        // Tabbing out of the ListBox commits changes
        listBox.addKeyDownHandler( new KeyDownHandler() {

            public void onKeyDown( KeyDownEvent event ) {
                boolean keyTab = event.getNativeKeyCode() == KeyCodes.KEY_TAB;
                boolean keyEnter = event.getNativeKeyCode() == KeyCodes.KEY_ENTER;
                if ( keyEnter
View Full Code Here

                    public void onClick(ClickEvent event) {
                        doLogin();
                    }
                }));

        final KeyDownHandler handler = new KeyDownHandler()
        {
            public void onKeyDown(KeyDownEvent event)
            {
                if (KeyCodes.KEY_ENTER == event.getNativeKeyCode())
                    doLogin();
View Full Code Here

                performClickAction(event);
            }
        });

        if (hotkeysEnabled) {
            focuser.addKeyDownHandler(new KeyDownHandler() {

                public void onKeyDown(@Nonnull final KeyDownEvent event) {
                    performKeyDownAction(event);
                }
            });
View Full Code Here

                performClickAction(event);
            }
        });

        if (hotkeysEnabled) {
            focuser.addKeyDownHandler(new KeyDownHandler() {

                public void onKeyDown(@Nonnull final KeyDownEvent event) {
                    performKeyDownAction(event);
                }
            });
View Full Code Here

  private boolean isEnabled = true;
  private IVkWidget vkParent;
 
  public VkTextBox(){
    if(VkStateHelper.getInstance().isDesignerMode()){
      super.addKeyDownHandler(new KeyDownHandler(){
        @Override
        public void onKeyDown(KeyDownEvent event) {
          if(event.getNativeKeyCode() == KeyCodes.KEY_DELETE)
            event.stopPropagation();
        }});
View Full Code Here

      keyDownHandlerRegistration.removeHandler();
    keyDownHandlerRegistration = null;
    keyDownJs = js.trim();
    if(!keyDownJs.isEmpty())
    {
      keyDownHandlerRegistration = addKeyDownHandler(new KeyDownHandler() {
        @Override
        public void onKeyDown(KeyDownEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(keyDownJs, event, true);
        }
      });
View Full Code Here

          }});
  }
  private MenuItem getStyleDialogMenuItem(final StyleMenu styleMenu) {
    if(styleDialogMenuItem == null) {
      styleDialogMenuItem = new MenuItem("SM", (Command)null);
      styleMenu.addDomHandler(new KeyDownHandler() {
        @Override
        public void onKeyDown(KeyDownEvent event) {
          if(event.getNativeKeyCode() == KeyCodes.KEY_ESCAPE)
            stylePickerPopPanel.hide();
        }
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.