|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
sun.applet.AppletViewer
public class AppletViewer
The applet viewer makes it possible to run a Java applet without using a browser. For details on the syntax that appletviewer supports, see AppletViewer Tags. (The document named appletviewertags.html in the JDK's docs/tooldocs directory, once the JDK docs have been installed.)
| Field Summary |
|---|
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AppletViewer(int x,
int y,
URL doc,
Hashtable atts,
PrintStream statusMsgStream,
AppletViewerFactory factory)
Create the applet viewer |
|
| Method Summary | |
|---|---|
MenuItem |
addMenuItem(Menu m,
String s)
|
protected void |
appletQuit()
Quit all viewers. |
static int |
countApplets()
How many applets are running? |
Applet |
getApplet(String name)
Get an applet by name. |
Enumeration |
getApplets()
Return an enumeration of all the accessible applets on this page. |
AudioClip |
getAudioClip(URL url)
Get an audio clip. |
java.awt.Image |
getImage(URL url)
Get an image. |
static void |
main(String[] argv)
Deprecated. |
static void |
networkProperties()
|
static void |
parse(URL url)
|
static void |
parse(URL url,
PrintStream statusMsgStream,
AppletViewerFactory factory)
|
static void |
parse(URL url,
String enc)
Scan an html file for |
static void |
printTag(PrintStream out,
Hashtable atts)
Print the HTML tag. |
void |
processUserAction(java.awt.event.ActionEvent evt)
Handle events. |
static String |
scanIdentifier(Reader in)
Scan identifier |
static Hashtable |
scanTag(Reader in)
Scan tag |
void |
showDocument(URL url)
Ignore. |
void |
showDocument(URL url,
String target)
Ignore. |
void |
showStatus(String status)
Show status. |
static void |
skipSpace(Reader in)
Scan spaces. |
void |
updateAtts()
Make sure the atrributes are uptodate. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, dispose, getCursorType, getFrames, getGraphics, getIconImage, getInsets, getMenuBar, getTitle, isResizable, paramString, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setTitle, validate |
| Methods inherited from class java.awt.Window |
|---|
addWindowListener, getFocusOwner, getLocale, getToolkit, getWarningString, isShowing, pack, postEvent, processEvent, processWindowEvent, removeWindowListener, repaint, setBackground, setCursor, show, toBack, toFront, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setLayout, validateTree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Constructor Detail |
|---|
public AppletViewer(int x,
int y,
URL doc,
Hashtable atts,
PrintStream statusMsgStream,
AppletViewerFactory factory)
| Method Detail |
|---|
public MenuItem addMenuItem(Menu m,
String s)
public AudioClip getAudioClip(URL url)
getAudioClip in interface AppletContexturl - an absolute URL giving the location of the audio clip.
public java.awt.Image getImage(URL url)
getImage in interface AppletContexturl - an absolute URL giving the location of the image.
Imagepublic Applet getApplet(String name)
getApplet in interface AppletContextname - an applet name.
null if
not found.public Enumeration getApplets()
getApplets in interface AppletContextpublic void showDocument(URL url)
showDocument in interface AppletContexturl - an absolute URL giving the location of the document.
public void showDocument(URL url,
String target)
showDocument in interface AppletContexturl - an absolute URL giving the location of the document.target - a String indicating where to display
the page.public void showStatus(String status)
showStatus in interface AppletContextstatus - a string to display in the status window.
public static void printTag(PrintStream out,
Hashtable atts)
public void updateAtts()
public static void networkProperties()
protected void appletQuit()
public void processUserAction(java.awt.event.ActionEvent evt)
public static int countApplets()
public static void skipSpace(Reader in)
throws IOException
IOException
public static String scanIdentifier(Reader in)
throws IOException
IOException
public static Hashtable scanTag(Reader in)
throws IOException
IOException
public static void parse(URL url,
String enc)
throws IOException
public static void parse(URL url)
throws IOException
IOException
public static void parse(URL url,
PrintStream statusMsgStream,
AppletViewerFactory factory)
throws IOException
IOExceptionpublic static void main(String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||