New file |
0,0 → 1,28 |
package org.tela_botanica.del.client.utils; |
|
import com.google.gwt.user.client.ui.KeyboardListener; |
import com.google.gwt.user.client.ui.Widget; |
|
@SuppressWarnings("deprecation") |
public abstract class KeyboardKeyListener implements KeyboardListener { |
|
public void onKeyDown(Widget arg0, char arg1, int arg2) { |
// TODO Auto-generated method stub |
|
} |
|
public void onKeyPress(Widget arg0, char arg1, int arg2) { |
// TODO Auto-generated method stub |
|
} |
|
public void onKeyUp(Widget arg0, char arg1, int arg2) { |
if (arg1 == KeyboardListener.KEY_ENTER) { |
onEnterKeyUp(); |
} |
|
} |
|
public abstract void onEnterKeyUp(); |
|
} |