Class HyperlinkAction.MailVisitor

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MailVisitor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isActionSupported()
      Returns a boolean indicating if the action is supported by the current Desktop.
      void visit​(java.net.URI uri)
      Visits the given URI via Desktop functionality.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MailVisitor

        private MailVisitor()
    • Method Detail

      • visit

        public void visit​(java.net.URI uri)
                   throws java.io.IOException
        Visits the given URI via Desktop functionality. Must not be called if not enabled.

        Implemented to message the mail function of Desktop.

        Specified by:
        visit in class HyperlinkAction.URIVisitor
        Parameters:
        uri - the URI to visit
        Throws:
        java.io.IOException - if the Desktop method throws IOException.
      • isActionSupported

        protected boolean isActionSupported()
        Returns a boolean indicating if the action is supported by the current Desktop.

        Implemented to query the Desktop for support of MAIL action.

        Specified by:
        isActionSupported in class HyperlinkAction.URIVisitor
        Returns:
        true if the Action is supported by the current desktop, false otherwise.