|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--com.ibm.security12.sun.applet.AppletPanel
Applet panel class. The panel manages and manipulates the applet as it is being loaded. It forks a separate thread in a new thread group to call the applet's init(), start(), stop(), and destroy() methods.
Field Summary | |
static int |
APPLET_DESTROY
|
static int |
APPLET_DISPOSE
|
static int |
APPLET_ERROR
|
static int |
APPLET_INIT
|
static int |
APPLET_LOAD
|
static int |
APPLET_LOADING
|
static int |
APPLET_LOADING_COMPLETED
|
static int |
APPLET_QUIT
|
static int |
APPLET_RESIZE
|
static int |
APPLET_START
|
static int |
APPLET_STOP
|
protected boolean |
doInit
Applet will allow initialization. |
protected int |
status
The current status. |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
AppletPanel()
|
Method Summary | |
void |
addAppletListener(sun.applet.AppletListener l)
|
void |
appletResize(int width,
int height)
Is called when the applet wants to be resized. |
protected void |
clearLoadAbortRequest()
|
protected java.applet.Applet |
createApplet(AppletClassLoader loader)
|
protected AppletClassLoader |
createClassLoader(URL codebase)
This method actually creates an AppletClassLoader. |
void |
dispatchAppletEvent(int id,
Object argument)
Dispatch event to the listeners.. |
static void |
flushClassLoader(URL codebase)
Flush a class loader. |
static void |
flushClassLoaders()
Flush all class loaders. |
java.applet.Applet |
getApplet()
|
Thread |
getAppletHandlerThread()
|
int |
getAppletHeight()
|
int |
getAppletWidth()
|
protected abstract String |
getCode()
|
abstract int |
getHeight()
|
protected abstract String |
getJarFiles()
|
Dimension |
getMinimumSize()
|
Dimension |
getPreferredSize()
|
protected abstract String |
getSerializedObject()
|
abstract int |
getWidth()
|
void |
init()
Construct an applet viewer and start the applet. |
boolean |
isActive()
Return true when the applet has been started. |
protected void |
loadJarFiles(AppletClassLoader loader)
|
Dimension |
minimumSize()
Deprecated. As of JDK version 1.1, replaced by getMinimumSize() . |
protected boolean |
okToLoad()
|
Dimension |
preferredSize()
Deprecated. As of JDK version 1.1, replaced by getPreferredSize() . |
void |
removeAppletListener(sun.applet.AppletListener l)
|
void |
run()
Execute applet events. |
void |
sendEvent(int id)
Send an event. |
void |
setBounds(int x,
int y,
int width,
int height)
|
protected void |
setLoadAbortRequest()
|
protected void |
showAppletException(Throwable t)
Called by the AppletPanel to provide feedback when an exception has happened. |
protected void |
showAppletLog(String msg)
Called by the AppletPanel to print to the log. |
protected void |
showAppletLog(String msg,
Object arg)
|
protected void |
showAppletStatus(String status)
Status line. |
protected void |
showAppletStatus(String status,
Object arg)
|
protected void |
showAppletStatus(String status,
Object arg1,
Object arg2)
|
protected void |
stopLoading()
Request that the loading of the applet be stopped. |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
paint,
paintComponents,
paramString,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
setLayout,
update,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected boolean doInit
public static final int APPLET_DISPOSE
public static final int APPLET_LOAD
public static final int APPLET_INIT
public static final int APPLET_START
public static final int APPLET_STOP
public static final int APPLET_DESTROY
public static final int APPLET_QUIT
public static final int APPLET_ERROR
public static final int APPLET_RESIZE
public static final int APPLET_LOADING
public static final int APPLET_LOADING_COMPLETED
protected int status
Constructor Detail |
public AppletPanel()
Method Detail |
protected abstract String getCode()
protected abstract String getJarFiles()
protected abstract String getSerializedObject()
public abstract int getWidth()
public abstract int getHeight()
public void init()
public Dimension getMinimumSize()
Dimension
that represents
the minimum size of this container.Container.getPreferredSize()
,
Container.getLayout()
,
LayoutManager.minimumLayoutSize(java.awt.Container)
,
Component.getMinimumSize()
public Dimension minimumSize()
getMinimumSize()
.public Dimension getPreferredSize()
Dimension
that represents
the preferred size of this container.Container.getMinimumSize()
,
Container.getLayout()
,
LayoutManager.preferredLayoutSize(java.awt.Container)
,
Component.getPreferredSize()
public Dimension preferredSize()
getPreferredSize()
.public void addAppletListener(sun.applet.AppletListener l)
public void removeAppletListener(sun.applet.AppletListener l)
public void dispatchAppletEvent(int id, Object argument)
public void sendEvent(int id)
public void run()
protected java.applet.Applet createApplet(AppletClassLoader loader) throws ClassNotFoundException, IllegalAccessException, IOException, InstantiationException, InterruptedException
protected void loadJarFiles(AppletClassLoader loader) throws IOException, InterruptedException
protected void stopLoading()
protected boolean okToLoad()
protected void clearLoadAbortRequest()
protected void setLoadAbortRequest()
public boolean isActive()
public void appletResize(int width, int height)
public void setBounds(int x, int y, int width, int height)
public java.applet.Applet getApplet()
protected void showAppletStatus(String status)
protected void showAppletStatus(String status, Object arg)
protected void showAppletStatus(String status, Object arg1, Object arg2)
protected void showAppletLog(String msg)
protected void showAppletLog(String msg, Object arg)
protected void showAppletException(Throwable t)
public static void flushClassLoader(URL codebase)
public static void flushClassLoaders()
protected AppletClassLoader createClassLoader(URL codebase)
public Thread getAppletHandlerThread()
public int getAppletWidth()
public int getAppletHeight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |