Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.kde.kjas.server
Class KJASAppletStub  view KJASAppletStub download KJASAppletStub.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byorg.kde.kjas.server.KJASAppletStub
All Implemented Interfaces:
javax.accessibility.Accessible, java.applet.AppletStub, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class KJASAppletStub
extends java.awt.Frame
implements java.applet.AppletStub

The stub used by Applets to communicate with their environment.


Nested Class Summary
(package private)  class KJASAppletStub.KJASAppletPanel
          Layout methods ********************************
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  boolean active
           
(package private)  java.applet.Applet app
           
(package private)  java.lang.Class appletClass
           
(package private)  java.lang.String appletID
           
(package private)  java.lang.String appletName
           
(package private)  java.awt.Dimension appletSize
           
(package private)  java.lang.String className
           
(package private)  java.net.URL codeBase
           
(package private)  KJASAppletContext context
           
(package private)  java.net.URL docBase
           
(package private)  KJASAppletClassLoader loader
           
(package private)  KJASAppletStub me
           
(package private)  KJASAppletStub.KJASAppletPanel panel
           
(package private)  java.util.Hashtable params
           
(package private)  java.lang.Thread runThread
           
(package private)  java.lang.String windowName
           
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, 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.Window
 
Fields inherited from class java.awt.Container
 
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
KJASAppletStub(KJASAppletContext _context, java.lang.String _appletID, java.net.URL _codeBase, java.net.URL _docBase, java.lang.String _appletName, java.lang.String _className, java.awt.Dimension _appletSize, java.util.Hashtable _params, java.lang.String _windowName, KJASAppletClassLoader _loader)
          Create an AppletStub for the specified applet.
 
Method Summary
 void appletResize(int width, int height)
          AppletStub Interface *****************************
 void createApplet()
          Runnable Interface ******************************
 void die()
           
 java.applet.Applet getApplet()
           
 java.applet.AppletContext getAppletContext()
          Returns the applet context for this applet.
 java.lang.String getAppletName()
           
 java.awt.Dimension getAppletSize()
           
 java.net.URL getCodeBase()
          Returns the URL of the code base for this applet.
 java.net.URL getDocumentBase()
          Returns the basename URL of the document this applet is embedded in.
 java.lang.String getParameter(java.lang.String name)
          Returns the value of the specified parameter that was specified in the <APPLET> tag for this applet.
 void initApplet()
           
 boolean isActive()
          Tests whether or not this applet is currently active.
 void startApplet()
           
 void stopApplet()
           
 
Methods inherited from class java.awt.Frame
addNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
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
 

Field Detail

context

KJASAppletContext context

params

java.util.Hashtable params

codeBase

java.net.URL codeBase

docBase

java.net.URL docBase

active

boolean active

appletName

java.lang.String appletName

appletID

java.lang.String appletID

appletSize

java.awt.Dimension appletSize

windowName

java.lang.String windowName

className

java.lang.String className

appletClass

java.lang.Class appletClass

loader

KJASAppletClassLoader loader

panel

KJASAppletStub.KJASAppletPanel panel

app

java.applet.Applet app

runThread

java.lang.Thread runThread

me

KJASAppletStub me
Constructor Detail

KJASAppletStub

public KJASAppletStub(KJASAppletContext _context,
                      java.lang.String _appletID,
                      java.net.URL _codeBase,
                      java.net.URL _docBase,
                      java.lang.String _appletName,
                      java.lang.String _className,
                      java.awt.Dimension _appletSize,
                      java.util.Hashtable _params,
                      java.lang.String _windowName,
                      KJASAppletClassLoader _loader)
Create an AppletStub for the specified applet. The stub will be in the specified context and will automatically attach itself to the passed applet.

Method Detail

createApplet

public void createApplet()
Runnable Interface ******************************


startApplet

public void startApplet()

stopApplet

public void stopApplet()

initApplet

public void initApplet()

die

public void die()

getApplet

public java.applet.Applet getApplet()

getAppletSize

public java.awt.Dimension getAppletSize()

appletResize

public void appletResize(int width,
                         int height)
AppletStub Interface *****************************

Specified by:
appletResize in interface java.applet.AppletStub

getAppletContext

public java.applet.AppletContext getAppletContext()
Description copied from interface: java.applet.AppletStub
Returns the applet context for this applet.

Specified by:
getAppletContext in interface java.applet.AppletStub

getCodeBase

public java.net.URL getCodeBase()
Description copied from interface: java.applet.AppletStub
Returns the URL of the code base for this applet.

Specified by:
getCodeBase in interface java.applet.AppletStub

getDocumentBase

public java.net.URL getDocumentBase()
Description copied from interface: java.applet.AppletStub
Returns the basename URL of the document this applet is embedded in. This is everything up to the final '/'.

Specified by:
getDocumentBase in interface java.applet.AppletStub

getAppletName

public java.lang.String getAppletName()

getParameter

public java.lang.String getParameter(java.lang.String name)
Description copied from interface: java.applet.AppletStub
Returns the value of the specified parameter that was specified in the <APPLET> tag for this applet.

Specified by:
getParameter in interface java.applet.AppletStub

isActive

public boolean isActive()
Description copied from interface: java.applet.AppletStub
Tests whether or not this applet is currently active. An applet is active just before the browser invokes start(), and becomes inactive just before the browser invokes stop().

Specified by:
isActive in interface java.applet.AppletStub