Save This Page
Home » openjdk-7 » sun » applet » [javadoc | source]
sun.applet
public class: AppletViewer [javadoc | source]
java.lang.Object
   java.awt.Component
      java.awt.Container
         java.awt.Window
            java.awt.Frame
               sun.applet.AppletViewer

All Implemented Interfaces:
    Printable, AppletContext, MenuContainer, Accessible, ImageObserver, Serializable

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
 AppletViewerPanel panel    The panel in which the applet is being displayed. 
 Label label    The status line. 
 PrintStream statusMsgStream    output status messages to this stream 
 AppletViewerFactory factory    For cloning 
static  Vector appletPanels     
static  Hashtable systemParam    System parameters. 
static  AppletProps props    Properties. 
static  int c    The current character. 
static  String encoding     
Fields inherited from java.awt.Frame:
DEFAULT_CURSOR,  CROSSHAIR_CURSOR,  TEXT_CURSOR,  WAIT_CURSOR,  SW_RESIZE_CURSOR,  SE_RESIZE_CURSOR,  NW_RESIZE_CURSOR,  NE_RESIZE_CURSOR,  N_RESIZE_CURSOR,  S_RESIZE_CURSOR,  W_RESIZE_CURSOR,  E_RESIZE_CURSOR,  HAND_CURSOR,  MOVE_CURSOR,  NORMAL,  ICONIFIED,  MAXIMIZED_HORIZ,  MAXIMIZED_VERT,  MAXIMIZED_BOTH
Fields inherited from java.awt.Component:
TOP_ALIGNMENT,  CENTER_ALIGNMENT,  BOTTOM_ALIGNMENT,  LEFT_ALIGNMENT,  RIGHT_ALIGNMENT
Constructor:
 public AppletViewer(int x,
    int y,
    URL doc,
    Hashtable atts,
    PrintStream statusMsgStream,
    AppletViewerFactory factory) 
    Create the applet viewer
Method from sun.applet.AppletViewer Summary:
addMenuItem,   appletCharacterEncoding,   appletClone,   appletClose,   appletEdit,   appletInfo,   appletPrint,   appletQuit,   appletReload,   appletRestart,   appletSave,   appletStart,   appletStop,   appletTag,   countApplets,   flushImageCache,   getApplet,   getApplets,   getAudioClip,   getCachedImage,   getCachedImageRef,   getImage,   getStream,   getStreamKeys,   main,   networkProperties,   parse,   parse,   parse,   print,   printTag,   processUserAction,   scanIdentifier,   scanTag,   setStream,   showDocument,   showDocument,   showStatus,   skipSpace,   updateAtts
Methods from java.awt.Frame:
addNotify,   getAccessibleContext,   getCursorType,   getExtendedState,   getFrames,   getIconImage,   getMaximizedBounds,   getMenuBar,   getState,   getTitle,   isResizable,   isUndecorated,   remove,   removeNotify,   setCursor,   setExtendedState,   setIconImage,   setMaximizedBounds,   setMenuBar,   setResizable,   setState,   setTitle,   setUndecorated
Methods from java.awt.Window:
addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   addWindowFocusListener,   addWindowListener,   addWindowStateListener,   applyResourceBundle,   applyResourceBundle,   createBufferStrategy,   createBufferStrategy,   dispose,   getAccessibleContext,   getBufferStrategy,   getFocusCycleRootAncestor,   getFocusOwner,   getFocusTraversalKeys,   getFocusableWindowState,   getGraphicsConfiguration,   getIconImages,   getInputContext,   getListeners,   getLocale,   getModalExclusionType,   getMostRecentFocusOwner,   getOwnedWindows,   getOwner,   getOwnerlessWindows,   getToolkit,   getWarningString,   getWindowFocusListeners,   getWindowListeners,   getWindowStateListeners,   getWindows,   hide,   isActive,   isAlwaysOnTop,   isAlwaysOnTopSupported,   isFocusCycleRoot,   isFocusableWindow,   isFocused,   isLocationByPlatform,   isShowing,   pack,   postEvent,   removeNotify,   removeWindowFocusListener,   removeWindowListener,   removeWindowStateListener,   reshape,   setAlwaysOnTop,   setBounds,   setBounds,   setCursor,   setFocusCycleRoot,   setFocusableWindowState,   setIconImage,   setIconImages,   setLocationByPlatform,   setLocationRelativeTo,   setMinimumSize,   setModalExclusionType,   setSize,   setSize,   setVisible,   show,   toBack,   toFront
Methods from java.awt.Container:
add,   add,   add,   add,   add,   addContainerListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   countComponents,   deliverEvent,   doLayout,   findComponentAt,   findComponentAt,   getAlignmentX,   getAlignmentY,   getComponent,   getComponentAt,   getComponentAt,   getComponentCount,   getComponentZOrder,   getComponents,   getContainerListeners,   getFocusTraversalKeys,   getFocusTraversalPolicy,   getInsets,   getLayout,   getListeners,   getMaximumSize,   getMinimumSize,   getMousePosition,   getPreferredSize,   insets,   invalidate,   isAncestorOf,   isFocusCycleRoot,   isFocusCycleRoot,   isFocusTraversalPolicyProvider,   isFocusTraversalPolicySet,   layout,   list,   list,   locate,   minimumSize,   paint,   paintComponents,   preferredSize,   print,   printComponents,   remove,   remove,   removeAll,   removeContainerListener,   removeNotify,   setComponentZOrder,   setFocusCycleRoot,   setFocusTraversalKeys,   setFocusTraversalPolicy,   setFocusTraversalPolicyProvider,   setFont,   setLayout,   transferFocusBackward,   transferFocusDownCycle,   update,   validate
Methods from java.awt.Component:
action,   add,   addComponentListener,   addFocusListener,   addHierarchyBoundsListener,   addHierarchyListener,   addInputMethodListener,   addKeyListener,   addMouseListener,   addMouseMotionListener,   addMouseWheelListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   bounds,   checkImage,   checkImage,   contains,   contains,   createImage,   createImage,   createVolatileImage,   createVolatileImage,   deliverEvent,   disable,   dispatchEvent,   doLayout,   enable,   enable,   enableInputMethods,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   getAccessibleContext,   getAlignmentX,   getAlignmentY,   getBackground,   getBaseline,   getBaselineResizeBehavior,   getBounds,   getBounds,   getColorModel,   getComponentAt,   getComponentAt,   getComponentListeners,   getComponentOrientation,   getCursor,   getDropTarget,   getFocusCycleRootAncestor,   getFocusListeners,   getFocusTraversalKeys,   getFocusTraversalKeysEnabled,   getFont,   getFontMetrics,   getForeground,   getGraphics,   getGraphicsConfiguration,   getHeight,   getHierarchyBoundsListeners,   getHierarchyListeners,   getIgnoreRepaint,   getInputContext,   getInputMethodListeners,   getInputMethodRequests,   getKeyListeners,   getListeners,   getLocale,   getLocation,   getLocation,   getLocationOnScreen,   getMaximumSize,   getMinimumSize,   getMouseListeners,   getMouseMotionListeners,   getMousePosition,   getMouseWheelListeners,   getName,   getParent,   getPeer,   getPreferredSize,   getPropertyChangeListeners,   getPropertyChangeListeners,   getSize,   getSize,   getToolkit,   getTreeLock,   getWidth,   getX,   getY,   gotFocus,   handleEvent,   hasFocus,   hide,   imageUpdate,   inside,   invalidate,   isBackgroundSet,   isCursorSet,   isDisplayable,   isDoubleBuffered,   isEnabled,   isFocusCycleRoot,   isFocusOwner,   isFocusTraversable,   isFocusable,   isFontSet,   isForegroundSet,   isLightweight,   isMaximumSizeSet,   isMinimumSizeSet,   isOpaque,   isPreferredSizeSet,   isShowing,   isValid,   isVisible,   keyDown,   keyUp,   layout,   list,   list,   list,   list,   list,   locate,   location,   lostFocus,   minimumSize,   mouseDown,   mouseDrag,   mouseEnter,   mouseExit,   mouseMove,   mouseUp,   move,   nextFocus,   paint,   paintAll,   postEvent,   preferredSize,   prepareImage,   prepareImage,   print,   printAll,   remove,   removeComponentListener,   removeFocusListener,   removeHierarchyBoundsListener,   removeHierarchyListener,   removeInputMethodListener,   removeKeyListener,   removeMouseListener,   removeMouseMotionListener,   removeMouseWheelListener,   removeNotify,   removePropertyChangeListener,   removePropertyChangeListener,   repaint,   repaint,   repaint,   repaint,   requestFocus,   requestFocusInWindow,   reshape,   resize,   resize,   setBackground,   setBounds,   setBounds,   setComponentOrientation,   setCursor,   setDropTarget,   setEnabled,   setFocusTraversalKeys,   setFocusTraversalKeysEnabled,   setFocusable,   setFont,   setForeground,   setIgnoreRepaint,   setLocale,   setLocation,   setLocation,   setMaximumSize,   setMinimumSize,   setName,   setPreferredSize,   setSize,   setSize,   setVisible,   show,   show,   size,   toString,   transferFocus,   transferFocusBackward,   transferFocusUpCycle,   update,   validate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.applet.AppletViewer Detail:
 public MenuItem addMenuItem(Menu m,
    String s) 
  void appletCharacterEncoding() 
    Show character encoding type
  void appletClone() 
    Clone the viewer and the applet.
  void appletClose() 
    Close this viewer. Stop, Destroy, Dispose and Quit an AppletView, then reclaim resources and exit the program if this is the last applet.
  void appletEdit() 
    Edit the applet.
  void appletInfo() 
    Show the applet info.
  void appletPrint() 
    Print the applet.
 protected  void appletQuit() 
    Quit all viewers. Shutdown all viewers properly then exit from the program (if not stand alone)
  void appletReload() 
    Reload the applet.
  void appletRestart() 
    Restart the applet.
  void appletSave() 
    Save the applet to a well known file (for now) as a serialized object
  void appletStart() 
    Start the applet.
  void appletStop() 
    Stop the applet.
  void appletTag() 
    Show the applet tag.
 public static int countApplets() 
    How many applets are running?
 static  void flushImageCache() 
    Flush the image cache.
 public Applet getApplet(String name) 
    Get an applet by name.
 public Enumeration getApplets() 
    Return an enumeration of all the accessible applets on this page.
 public AudioClip getAudioClip(URL url) 
    Get an audio clip.
 static Image getCachedImage(URL url) 
 static Ref getCachedImageRef(URL url) 
    Get an image ref.
 public Image getImage(URL url) 
    Get an image.
 public InputStream getStream(String key) 
 public Iterator getStreamKeys() 
 public static  void main(String[] argv) 
Deprecated!
    Old main entry point.
 public static synchronized  void networkProperties() 
 public static  void parse(URL url) throws IOException 
 public static  void parse(URL url,
    String enc) throws IOException 
    Scan an html file for tags
 public static  void parse(URL url,
    PrintStream statusMsgStream,
    AppletViewerFactory factory) throws IOException 
 public int print(Graphics graphics,
    PageFormat pf,
    int pageIndex) 
 public static  void printTag(PrintStream out,
    Hashtable atts) 
    Print the HTML tag.
 public  void processUserAction(ActionEvent evt) 
    Handle events.
 public static String scanIdentifier(Reader in) throws IOException 
    Scan identifier
 public static Hashtable scanTag(Reader in) throws IOException 
    Scan tag
 public  void setStream(String key,
    InputStream stream) throws IOException 
 public  void showDocument(URL url) 
    Ignore.
 public  void showDocument(URL url,
    String target) 
    Ignore.
 public  void showStatus(String status) 
    Show status.
 public static  void skipSpace(Reader in) throws IOException 
    Scan spaces.
 public  void updateAtts() 
    Make sure the atrributes are uptodate.