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();
};
}
Aggregations