org.netbeans.modules.java.api.common.applet
Class AppletSupport
java.lang.Object
org.netbeans.modules.java.api.common.applet.AppletSupport
public class AppletSupport
- extends Object
Support for execution of applets.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
unitTestingSupport_isApplet
public static Boolean unitTestingSupport_isApplet
isApplet
public static boolean isApplet(FileObject file)
generateSecurityPolicy
public static FileObject generateSecurityPolicy(FileObject projectDir)
- Returns:
- html file with the same name as applet
generateHtmlFileURL
public static URL generateHtmlFileURL(FileObject appletFile,
FileObject buildDir,
FileObject classesDir,
String activePlatform)
- Returns:
- URL of the html file with the same name as sibling
getHTMLPageURL
public static URL getHTMLPageURL(FileObject htmlFile,
String activePlatform)
- Creates an URL of html page passed to the appletviewer. It workarounds a JDK 1.5 appletviewer
bug. The appletviewer is not able to handle escaped URLs.
- Parameters:
htmlFile - html pageactivePlatform - identifier of the platform used in the project
- Returns:
- URL of the html page or null