こんな感じで書けばいけます。
===================================================
final TextBox tb = new TextBox(); tb.addKeyPressHandler(new KeyPressHandler() { public void onKeyPress(KeyPressEvent event) { if (event.getCharCode()==' '){ MyPopPuPanel pop = new MyPopPuPanel(); pop.setPopupPosition(tb.getOffsetWidth(), tb.getAbsoluteTop()); pop.setAutoHideEnabled(true); pop.show(); event.preventDefault(); } }
0 件のコメント:
コメントを投稿