public class AppletFrame
extends javax.swing.JComponent
implements java.applet.AppletContext, java.applet.AppletStub
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
AppletFrame(java.applet.Applet a,
int w,
int h,
java.lang.String baseDirPath,
java.util.Hashtable params)
Construct an AppletFrame.
|
Modifier and Type | Method and Description |
---|---|
void |
appletResize(int width,
int height)
Resize the applet to the width and height
|
java.applet.Applet |
getApplet(java.lang.String name)
Get the applet of said name
|
java.applet.AppletContext |
getAppletContext()
Get the applet's context
|
java.util.Enumeration |
getApplets()
Get an enumeration of the applets.
|
java.applet.AudioClip |
getAudioClip(java.net.URL url)
Get the audio clip at the location specified.
|
java.net.URL |
getCodeBase()
Get the code base
|
java.net.URL |
getDocumentBase()
Get the document base
|
java.awt.Image |
getImage(java.net.URL url)
Get the image at the url
|
java.lang.String |
getParameter(java.lang.String name)
Get a parameter from the list of parameters
|
java.io.InputStream |
getStream(java.lang.String key)
Get the InputStream for the given key
|
java.util.Iterator |
getStreamKeys()
Get the keys for a given stream
|
boolean |
isActive()
See if the applet is active
|
void |
setStream(java.lang.String key,
java.io.InputStream stream)
Set the input stream for the given key
|
void |
showDocument(java.net.URL url)
Show the document at the location specified
|
void |
showDocument(java.net.URL url,
java.lang.String target)
Show the document at the url with the target
|
void |
showStatus(java.lang.String status)
Show the status of this applet
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public AppletFrame(java.applet.Applet a, int w, int h, java.lang.String baseDirPath, java.util.Hashtable params)
a
- the appletw
- width of the frameh
- height of the framebaseDirPath
- base directory pathparams
- applet parameterspublic void appletResize(int width, int height)
appletResize
in interface java.applet.AppletStub
width
- new widthheight
- new heightpublic java.applet.AppletContext getAppletContext()
getAppletContext
in interface java.applet.AppletStub
public java.net.URL getCodeBase()
getCodeBase
in interface java.applet.AppletStub
public java.net.URL getDocumentBase()
getDocumentBase
in interface java.applet.AppletStub
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface java.applet.AppletStub
name
- name of the parameterpublic boolean isActive()
isActive
in interface java.applet.AppletStub
public java.awt.Image getImage(java.net.URL url)
getImage
in interface java.applet.AppletContext
url
- location of imagepublic void showStatus(java.lang.String status)
showStatus
in interface java.applet.AppletContext
status
- applet statuspublic java.applet.Applet getApplet(java.lang.String name)
getApplet
in interface java.applet.AppletContext
name
- name of the appletpublic java.util.Enumeration getApplets()
getApplets
in interface java.applet.AppletContext
public java.applet.AudioClip getAudioClip(java.net.URL url)
getAudioClip
in interface java.applet.AppletContext
url
- location of clippublic void showDocument(java.net.URL url)
showDocument
in interface java.applet.AppletContext
url
- document locationpublic void showDocument(java.net.URL url, java.lang.String target)
showDocument
in interface java.applet.AppletContext
url
- document URLtarget
- targetpublic java.io.InputStream getStream(java.lang.String key)
getStream
in interface java.applet.AppletContext
key
- key for streampublic java.util.Iterator getStreamKeys()
getStreamKeys
in interface java.applet.AppletContext
public void setStream(java.lang.String key, java.io.InputStream stream)
setStream
in interface java.applet.AppletContext
key
- key to usestream
- stream for key