Class HyperlinkAction.BrowseVisitor
java.lang.Object
org.jdesktop.swingx.hyperlink.HyperlinkAction.URIVisitor
org.jdesktop.swingx.hyperlink.HyperlinkAction.BrowseVisitor
- Enclosing class:
HyperlinkAction
-
Field Summary
Fields inherited from class HyperlinkAction.URIVisitor
desktopSupported -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReturns a boolean indicating if the action is supported by the current Desktop.booleanReturns a boolean indicating whether the action is supported on the given URI.voidVisits the given URI via Desktop functionality.
-
Constructor Details
-
BrowseVisitor
private BrowseVisitor()
-
-
Method Details
-
visit
Visits the given URI via Desktop functionality. Must not be called if not enabled.Implemented to message the browse method of Desktop.
- Specified by:
visitin 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 BROWSE action.
- Specified by:
isActionSupportedin classHyperlinkAction.URIVisitor- Returns:
- true if the Action is supported by the current desktop, false otherwise.
-
isEnabled
Returns a boolean indicating whether the action is supported on the given URI. This implementation returns true if both the Desktop is generally supported andisActionSupported(). PENDING JW: hmm ... which class exactly has to check for valid combination of Action and URI?Implemented to guard against null URI in addition to super.
- Overrides:
isEnabledin classHyperlinkAction.URIVisitor- Parameters:
uri-- Returns:
- See Also:
-