Package wt.security
Class DesktopAccess
java.lang.Object
wt.security.Access
wt.security.DesktopAccess
public class DesktopAccess
extends wt.security.Access
Class that provides wrappers to priviledged
Supported API: true
Desktop methods using
the wt.security package. This allows applets to invoke various "desktop"
operations, including browsing URIs with the preferred browser, opening,
editing, or printing files with the preferred application, or starting the
composition of an e-mail with the preferred e-mail client.
Supported API: true
-
Method Summary
Modifier and TypeMethodDescriptionfinal voidWrapper for browse(URI) method ofDesktopclass.final voidWrapper for edit(File) method ofDesktopclass.static DesktopAccessGet instance ofDesktopAccess.static DesktopAccessgetDesktopAccess(Frame parentFrame) Get instance ofDesktopAccess.final booleanWrapper for isSupported() method ofDesktopclass.final booleanisSupported(Desktop.Action action) Wrapper for isSupported(Desktop.Action) method ofDesktopclass.final voidmail()Wrapper for mail() method ofDesktopclass.final voidWrapper for mail(URI) method ofDesktopclass.final voidWrapper for open(File) method ofDesktopclass.final voidWrapper for print(File) method ofDesktopclass.
-
Method Details
-
getDesktopAccess
Get instance ofDesktopAccess. This instance can then be used to performDesktopoperations that are typically restricted by the security sandbox.
Supported API: true- Parameters:
parentFrame- the parent frame for security dialog boxes that may be presented
-
getDesktopAccess
Get instance ofDesktopAccess. This instance can then be used to performDesktopoperations that are typically restricted by the security sandbox.
Supported API: true -
isSupported
public final boolean isSupported() -
isSupported
-
browse
- Parameters:
uri- URI to browse with web browser- Throws:
IOException
-
edit
- Parameters:
file- file to edit- Throws:
WTSecurityExceptionIOException
-
mail
- Throws:
WTSecurityExceptionIOException
-
mail
- Parameters:
mailtoURI- mailto URI- Throws:
WTSecurityExceptionIOException
-
open
- Parameters:
file- file to open- Throws:
WTSecurityExceptionIOException
-
print
- Parameters:
file- file to print- Throws:
WTSecurityExceptionIOException
-