private abstract class HyperlinkAction.URIVisitor extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
desktopSupported |
Modifier | Constructor and Description |
---|---|
private |
URIVisitor() |
Modifier and Type | Method and Description |
---|---|
protected abstract 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.
|
abstract void |
visit(URI uri)
Visits the given URI via Desktop functionality.
|
protected boolean desktopSupported
private URIVisitor()
public boolean isEnabled(URI uri)
isActionSupported()
.
PENDING JW: hmm ... which class exactly has to check for valid combination
of Action and URI?uri
- isActionSupported()
public abstract void visit(URI uri) throws IOException
uri
- the URI to visitIOException
- if the Desktop method throws IOException.protected abstract boolean isActionSupported()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses