private class HyperlinkAction.BrowseVisitor extends HyperlinkAction.URIVisitor
desktopSupported
Modifier | Constructor and Description |
---|---|
private |
BrowseVisitor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isActionSupported()
Returns a boolean indicating if the action is supported by the current
Desktop.
|
boolean |
isEnabled(URI uri)
Returns a boolean indicating whether the action is supported on the
given URI.
|
void |
visit(URI uri)
Visits the given URI via Desktop functionality.
|
private BrowseVisitor()
public void visit(URI uri) throws IOException
Implemented to message the browse method of Desktop.
visit
in class HyperlinkAction.URIVisitor
uri
- the URI to visitIOException
- if the Desktop method throws IOException.protected boolean isActionSupported()
Implemented to query the Desktop for support of BROWSE action.
isActionSupported
in class HyperlinkAction.URIVisitor
public boolean isEnabled(URI uri)
isActionSupported()
.
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.
isEnabled
in class HyperlinkAction.URIVisitor
HyperlinkAction.URIVisitor.isActionSupported()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses