I want to handle events when user pastes some text in TextBox
. Which event is fired in this situation? I tried ValueChange
and Change
handlers, but they didn't work.
相关问题
- How to run GWT in production mode
- Google Guava 15.0 Error with GWT 2.5.1?
- Javascript instanceof & typeof in GWT (JSNI)
- How do you let UiBinder pass tags without binding
- Maven submodules in eclipse: Resources from one mo
相关文章
- Spring NamespaceHandler issue when launching Maven
- Annotation for GWT compiler to ignore method
- getComputedStyle like javascript function for IE8
- emacs terminal mode: how to copy and paste efficie
- Uploading to Blobstore gives a Java heap OutOfMemo
- Is copy-and-paste coding ever acceptable?
- GWT ,Vaadin,SmartGwt,ExtGwt ?---from Swing [closed
- GWT JDBC LDAP connection fails
This might help you. Describes a workaround to hook to the onpaste event. In short:
subclass
TextBox
sink the onpaste event in the constructor
override
onBrowserEvent(Event event)
GWT does not yet have support for cut, copy & paste: http://code.google.com/p/google-web-toolkit/issues/detail?id=4030
Edited: Another option is to use JSNI. For example add this to your GWT class: