|
||||||||||
| 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.Panel
java.applet.Applet
wjhk.jupload2.JUploadApplet
public class JUploadApplet
The applet. It contains quite only the call to creation of the
JUploadPanel, which contains the real code.
The behaviour of the applet can easily be adapted, by :
UploadPolicy, and
specifying parameters.
DefaultUploadPolicy, or created from scratch.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.applet.Applet |
|---|
Applet.AccessibleApplet |
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
Panel.AccessibleAWTPanel |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
BUILD_DATE
Date of the build for the applet. |
static String |
LAST_MODIFIED
Deprecated. since v3.1 |
static String |
VERSION
The version of this applet. |
| 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 | |
|---|---|
JUploadApplet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
void |
displayDebug(String debug,
int minDebugLevel)
Call to UploadPolicy.displayDebug(String, int) |
void |
displayErr(String err)
Call to UploadPolicy.displayErr(Exception) |
void |
displayInfo(String info)
Call to UploadPolicy.displayInfo(String) |
void |
displayWarn(String warn)
Call to UploadPolicy.displayWarn(String) |
JUploadTextArea |
getLogWindow()
Retrieves the current log window of this applet. |
static Properties |
getSvnProperties()
Helper function, to get the Revision number, if available. |
JUploadPanel |
getUploadPanel()
Retrieves the current upload panel. |
UploadPolicy |
getUploadPolicy()
Retrieves the current upload policy. |
void |
init()
|
static void |
main(String[] args)
Helper function for ant build to retrieve the current version. |
void |
registerUnload(Object o,
String method)
Register a callback to be executed during applet termination. |
void |
setProperty(String prop,
String value)
This allow runtime modifications of properties, from javascript. |
String |
startUpload()
example public method that can be called by Javascript to start upload |
void |
stop()
|
| Methods inherited from class java.applet.Applet |
|---|
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start |
| Methods inherited from class java.awt.Panel |
|---|
addNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String VERSION
@Deprecated public static final String LAST_MODIFIED
public static final String BUILD_DATE
| Constructor Detail |
|---|
public JUploadApplet()
| Method Detail |
|---|
public void init()
init in class AppletApplet.init()public JUploadTextArea getLogWindow()
JUploadPanel.showOrHideLogWindow()public JUploadPanel getUploadPanel()
public UploadPolicy getUploadPolicy()
public void setProperty(String prop,
String value)
prop - The property name that must be set.value - The value of this property.public String startUpload()
JavascriptHandler javadoc.public void displayErr(String err)
UploadPolicy.displayErr(Exception)
err - The error text to be displayed.public void displayInfo(String info)
UploadPolicy.displayInfo(String)
info - The info text to displaypublic void displayWarn(String warn)
UploadPolicy.displayWarn(String)
warn - The error text to be displayed.
public void displayDebug(String debug,
int minDebugLevel)
UploadPolicy.displayDebug(String, int)
debug - The debug message.minDebugLevel - The minimum level that debug level should have, to
display this message. Values can go from 0 to 100.public void stop()
stop in class AppletApplet.stop()public static void main(String[] args)
args - Standard argument for main method. Not used.public static Properties getSvnProperties()
public void registerUnload(Object o,
String method)
o - The Object instance to be registeredmethod - The Method of that object to be registered. The method must
be of type void and must not take any parameters and must be
public.public void destroy()
destroy in class AppletApplet.destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||