public interface WebViewHyperlinkListener
HyperlinkEvent
s which are dispatched by a WebView
.
Very similar do the HyperlinkListener
but it can cancel the further processing of events by the
WebEngine
. This does not extent to other listeners of this type to the same WebView
- these are
always called.
Modifier and Type | Method and Description |
---|---|
static WebViewHyperlinkListener |
fromHyperlinkListener(HyperlinkListener listener,
boolean cancel)
Adapts the specified (Swing) hyperlink listener to a web view hyperlink listener.
|
static WebViewHyperlinkListener |
fromHyperlinkListener(HyperlinkListener listener,
Function<HyperlinkEvent,Boolean> cancel)
Adapts the specified (Swing) hyperlink listener to a web view hyperlink listener.
|
boolean |
hyperlinkUpdate(HyperlinkEvent event)
Called when a hypertext link is updated.
|
static WebViewHyperlinkListener fromHyperlinkListener(HyperlinkListener listener, Function<HyperlinkEvent,Boolean> cancel)
listener
- the HyperlinkListener
to adaptcancel
- a Function
which checks for the specified event whether it should be canceledWebViewHyperlinkListener
static WebViewHyperlinkListener fromHyperlinkListener(HyperlinkListener listener, boolean cancel)
listener
- the HyperlinkListener
to adaptcancel
- whether the created listener should cancel every eventWebViewHyperlinkListener
boolean hyperlinkUpdate(HyperlinkEvent event)
event
- the event responsible for the updateThis documentation is licensed under CC-BY 4.0, attributed to Nicolai Parlog from CodeFX.