wt.security
Class AWTAccess
java.lang.Object
wt.security.Access
wt.security.AWTAccess
- Direct Known Subclasses:
- AWTAccess_plugin
- public class AWTAccess
- extends Access
Fields inherited from class wt.security.Access |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWTAccess
public AWTAccess()
getAWTAccess
public static AWTAccess getAWTAccess(Frame parentFrame)
- Get instance of
AWTAccess
. This instance can then be used
to perform AWT operation(like accessing clipboard) that are typically restricted by the sandbox.
- Parameters:
parentFrame
- the parent frame for security dialog boxes that may be
presented
Supported API: true
getAWTAccess
public static AWTAccess getAWTAccess()
- . * Get instance of
AWTAccess
. This instance can then be used
to perform AWT operation that are typically restricted by the sandbox.
Supported API: true
getSystemClipboard
public Clipboard getSystemClipboard()
throws WTSecurityException
- . * Wrapper for
Toolkit.getDefaultToolkit().getSystemClipboard()
.
Supported API: true
- Throws:
WTSecurityException
getSystemClipboard0
Clipboard getSystemClipboard0()
setAppletStub
public void setAppletStub(Applet applet,
AppletStub appletStub)
- Wrapper needed by client checker to work with Java 1.5 as Applet.setStub()
is a privileged operation there. This method is not supported and is
unlike the other methods in that it does not ask permission from the
user for its operation at this time, essentially maintaining 1.4.x behavior
in Java 2 v1.5.
setAppletStub0
void setAppletStub0(Applet applet,
AppletStub appletStub)
getHWnd
public int getHWnd(Component c)
throws WTSecurityException
- Wrapper to obtain handle to peer's heavy weight component. Only
implemented for the Java Plugin and Windows. Returns -1 for other platforms.
Supported API: true
- Throws:
WTSecurityException
getHWnd0
int getHWnd0(Component c)
throws WTSecurityException
- Throws:
WTSecurityException