@OpenApiAll public static class GUILog.DefaultURLActionHandler extends java.lang.Object implements GUILog.URLActionHandler
ACTION_URL_PROTOCOL
Constructor and Description |
---|
DefaultURLActionHandler(java.util.Collection<? extends NMAction> actions)
Constructor for a handler with many actions
|
DefaultURLActionHandler(java.util.Collection<? extends NMAction> actions,
boolean closeWindow)
Constructor for a handler with many actions
|
DefaultURLActionHandler(NMAction action)
Constructor for a handler with a single action
|
DefaultURLActionHandler(NMAction action,
boolean closeWindow)
Constructor for a handler with a single action
|
Modifier and Type | Method and Description |
---|---|
boolean |
openURL(java.lang.String url,
java.awt.event.InputEvent event)
Opens given url.
|
public DefaultURLActionHandler(@Nonnull NMAction action)
action
- actionpublic DefaultURLActionHandler(@Nonnull NMAction action, boolean closeWindow)
action
- actioncloseWindow
- close window in which hyperlink was activatedpublic DefaultURLActionHandler(@Nonnull java.util.Collection<? extends NMAction> actions)
actions
- actionspublic DefaultURLActionHandler(@Nonnull java.util.Collection<? extends NMAction> actions, boolean closeWindow)
actions
- actionscloseWindow
- close window in which hyperlink was activatedpublic boolean openURL(java.lang.String url, java.awt.event.InputEvent event)
GUILog.URLActionHandler
openURL
in interface GUILog.URLActionHandler
url
- urlevent
- event