Search in sources :

Example 1 with AnchorClickedEvent

use of edu.stanford.bmir.protege.web.client.anchor.AnchorClickedEvent in project webprotege by protegeproject.

the class ExpandingTextBoxImpl method addAnchorClickedHandler.

@Override
public HandlerRegistration addAnchorClickedHandler(AnchorClickedHandler handler) {
    final HandlerRegistration anchorClickReg = addHandler(handler, AnchorClickedEvent.TYPE);
    final HandlerRegistration clickReg = anchor.addClickHandler(event -> fireEvent(new AnchorClickedEvent(ExpandingTextBoxImpl.this)));
    return () -> {
        clickReg.removeHandler();
        anchorClickReg.removeHandler();
    };
}
Also used : HandlerRegistration(com.google.gwt.event.shared.HandlerRegistration) AnchorClickedEvent(edu.stanford.bmir.protege.web.client.anchor.AnchorClickedEvent)

Aggregations

HandlerRegistration (com.google.gwt.event.shared.HandlerRegistration)1 AnchorClickedEvent (edu.stanford.bmir.protege.web.client.anchor.AnchorClickedEvent)1