Package org.jdesktop.swingx.hyperlink
Class HyperlinkAction.MailVisitor
java.lang.Object
org.jdesktop.swingx.hyperlink.HyperlinkAction.URIVisitor
org.jdesktop.swingx.hyperlink.HyperlinkAction.MailVisitor
- Enclosing class:
HyperlinkAction
-
Field Summary
Fields inherited from class org.jdesktop.swingx.hyperlink.HyperlinkAction.URIVisitor
desktopSupported
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Returns a boolean indicating if the action is supported by the current Desktop.void
Visits the given URI via Desktop functionality.Methods inherited from class org.jdesktop.swingx.hyperlink.HyperlinkAction.URIVisitor
isEnabled
-
Constructor Details
-
MailVisitor
private MailVisitor()
-
-
Method Details
-
visit
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 classHyperlinkAction.URIVisitor
- Parameters:
uri
- the URI to visit- Throws:
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 classHyperlinkAction.URIVisitor
- Returns:
- true if the Action is supported by the current desktop, false otherwise.
-