Class GUILog.DefaultURLActionHandler

    • Field Detail

      • closeWindow

        private final boolean closeWindow
        CLose window on action execution
      • actions

        private final java.util.Collection<? extends NMAction> actions
        Actions
    • Constructor Detail

      • DefaultURLActionHandler

        public DefaultURLActionHandler​(@Nonnull
                                       NMAction action)
        Constructor for a handler with a single action
        Parameters:
        action - action
      • DefaultURLActionHandler

        public DefaultURLActionHandler​(@Nonnull
                                       NMAction action,
                                       boolean closeWindow)
        Constructor for a handler with a single action
        Parameters:
        action - action
        closeWindow - close window in which hyperlink was activated
      • DefaultURLActionHandler

        public DefaultURLActionHandler​(@Nonnull
                                       java.util.Collection<? extends NMAction> actions)
        Constructor for a handler with many actions
        Parameters:
        actions - actions
      • DefaultURLActionHandler

        public DefaultURLActionHandler​(@Nonnull
                                       java.util.Collection<? extends NMAction> actions,
                                       boolean closeWindow)
        Constructor for a handler with many actions
        Parameters:
        actions - actions
        closeWindow - close window in which hyperlink was activated
    • Method Detail

      • openURL

        public boolean openURL​(java.lang.String url,
                               java.awt.event.InputEvent event)
        Description copied from interface: GUILog.URLActionHandler
        Opens given url.
        Specified by:
        openURL in interface GUILog.URLActionHandler
        Parameters:
        url - url
        event - event
        Returns:
        true if url was handled, false if not
      • collectAllActions

        private static java.util.Collection<? extends NMAction> collectAllActions​(java.util.Collection<? extends NMAction> actions)