org.netbeans.modules.java.api.common/0 1.37

org.netbeans.modules.java.api.common.applet
Class AppletSupport

java.lang.Object
  extended by org.netbeans.modules.java.api.common.applet.AppletSupport

public class AppletSupport
extends Object

Support for execution of applets.


Field Summary
static Boolean unitTestingSupport_isApplet
           
 
Method Summary
static URL generateHtmlFileURL(FileObject appletFile, FileObject buildDir, FileObject classesDir, String activePlatform)
           
static FileObject generateSecurityPolicy(FileObject projectDir)
           
static URL getHTMLPageURL(FileObject htmlFile, String activePlatform)
          Creates an URL of html page passed to the appletviewer.
static boolean isApplet(FileObject file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unitTestingSupport_isApplet

public static Boolean unitTestingSupport_isApplet
Method Detail

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 page
activePlatform - identifier of the platform used in the project
Returns:
URL of the html page or null

org.netbeans.modules.java.api.common/0 1.37

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.