HHeckner
HHeckner

Reputation: 5056

Java: How to convert/ cast a Event Handler

I have to implement com.google.gwt.event.dom.client.HasClickHandlers on a custom component with

class ItemTextBox extends Composite implements HasPasteEventHandler, TextArea {

so I have to implement

@Override
    public HandlerRegistration addKeyDownHandler(final KeyDownHandler handler) {
        // return textAreaWidget.addKeyDownHandler(handler);

}

Now I have replaced textAreaWidget which offered to addKeyDownHandler with a Summernote https://github.com/gwtbootstrap3/gwtbootstrap3-extras (see Summernote) which only offers a SummernoteKeyDownHandler

How do I convert that

Upvotes: 1

Views: 105

Answers (0)

Related Questions